Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 096027b

Browse filesBrowse files
author
Stefan Stancu
committed
Ensure git remote urls (multiple) are read from the correct git repo config
1 parent 1f66e25 commit 096027b
Copy full SHA for 096027b

File tree

Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed

‎AUTHORS

Copy file name to clipboardExpand all lines: AUTHORS
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@ Contributors are:
2929
-Tim Swast <swast _at_ google.com>
3030
-William Luc Ritchie
3131
-David Host <hostdm _at_ outlook.com>
32+
-Stefan Stancu <stefan.stancu _at_ gmail.com>
3233

3334
Portions derived from other open source works and are clearly marked.

‎git/remote.py

Copy file name to clipboardExpand all lines: git/remote.py
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -544,10 +544,9 @@ def urls(self):
544544
except GitCommandError as ex:
545545
if any(msg in str(ex) for msg in ['correct access rights', 'cannot run ssh']):
546546
# 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
547+
remote_details = self.repo.git.config('--get-all', 'remote.%s.url' % self.name)
548+
for line in remote_details.split('\n'):
549+
yield line
551550
else:
552551
raise ex
553552
else:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.