diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2017-12-11 11:47:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-11 11:47:40 +0100 |
commit | a14277eecf65ac216dd1b756acee8c23ecdf95d9 (patch) | |
tree | 174b504a43cf8b9e88165c1effd3ca9b28945d32 /git/remote.py | |
parent | 0a96030d82fa379d24b952a58eed395143950c7b (diff) | |
parent | f48d08760552448a196fa400725cde7198e9c9b9 (diff) | |
download | gitpython-a14277eecf65ac216dd1b756acee8c23ecdf95d9.tar.gz |
Merge pull request #702 from yarikoptic/bf-happy-travis
BF (codename "happy travis"): trying to address lints etc to make Travis green again
Diffstat (limited to 'git/remote.py')
-rw-r--r-- | git/remote.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/git/remote.py b/git/remote.py index 35460f5a..813566a2 100644 --- a/git/remote.py +++ b/git/remote.py @@ -542,9 +542,11 @@ class Remote(LazyMixin, Iterable): if ' Push URL:' in line: yield line.split(': ')[-1] except GitCommandError as 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]) + 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 else: raise ex |