Skip to content

Commit e639fc8

Browse files
author
Stefan Stancu
committed
Ensure git remote url is read from the correct git repo config
1 parent 1f66e25 commit e639fc8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

git/remote.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -544,9 +544,7 @@ 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-
)
547+
result = self.repo.git.config('--get', 'remote.%s.url' % self.name)
550548
yield result
551549
else:
552550
raise ex

0 commit comments

Comments
 (0)