We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f66e25 commit 01edee6Copy full SHA for 01edee6
git/remote.py
@@ -544,10 +544,9 @@ def urls(self):
544
except GitCommandError as ex:
545
if any(msg in str(ex) for msg in ['correct access rights', 'cannot run ssh']):
546
# If ssh is not setup to access this repository, see issue 694
547
- result = Git().execute(
548
- ['git', 'config', '--get', 'remote.%s.url' % self.name]
549
- )
550
- yield result
+ remote_details = self.repo.git.config('--get-all', 'remote.%s.url' % self.name)
+ for line in remote_details.split('\n'):
+ yield line
551
else:
552
raise ex
553
0 commit comments