If the system git is < 2.7, and the URL is one that git expects to use SSH access on, but SSH isn't working for any reason, then self.repo.git.remote("show", self.name)here in remote.py will fail with:
GitCommandError: Cmd('git') faileddueto: exitcode(128)
cmdline: gitremoteshoworiginstderr: 'Permissiondenied (publickey).
fatal: Couldnotreadfromremoterepository.
Pleasemakesureyouhavethecorrectaccessrightsandtherepositoryexists.'or related errors if SSH is not installed or on the path.
This can be fixed by falling back to git config --get remote.%s.url' % self.name which just reads the URL directly from the configuration.
If the system git is < 2.7, and the URL is one that git expects to use SSH access on, but SSH isn't working for any reason, then
self.repo.git.remote("show", self.name)here in remote.py will fail with:or related errors if SSH is not installed or on the path.
This can be fixed by falling back to
git config --get remote.%s.url' % self.namewhich just reads the URL directly from the configuration.