diff options
-rw-r--r-- | git/remote.py | 2 |
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 |