summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard C Gerkin <rick1@gerkin.org>2017-11-05 16:00:17 -0700
committerGitHub <noreply@github.com>2017-11-05 16:00:17 -0700
commit7a91cf1217155ef457d92572530503d13b5984fb (patch)
tree3e8d4e2d64ae1357499d2291be90839fe1f4bcb9
parentecd061b2e296a4f48fc9f545ece11c22156749e1 (diff)
downloadgitpython-7a91cf1217155ef457d92572530503d13b5984fb.tar.gz
Further update for machines without ssh installed or on the path
-rw-r--r--git/remote.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/remote.py b/git/remote.py
index c5990da1..35460f5a 100644
--- a/git/remote.py
+++ b/git/remote.py
@@ -542,7 +542,7 @@ class Remote(LazyMixin, Iterable):
if ' Push URL:' in line:
yield line.split(': ')[-1]
except GitCommandError as ex:
- if 'correct access rights' in str(ex):
+ if any([msg in str(ex) for msg in ['correct access rights','cannot run ssh']]):
# If ssh is not setup to access this repository, see issue 694
result = Git().execute(['git','config','--get','remote.%s.url' % self.name])
yield result