this should only be invoked for pfs and not local gitrepo.