Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit28cbb95

Browse files
authored
Merge pull request#695 from rgerkin/issue694
Fixes issue#694
2 parentsd91ae75 +7a91cf1 commit28cbb95

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

‎git/remote.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -536,10 +536,18 @@ def urls(self):
536536
# and: http://stackoverflow.com/a/32991784/548792
537537
#
538538
if'Unknown subcommand: get-url'instr(ex):
539-
remote_details=self.repo.git.remote("show",self.name)
540-
forlineinremote_details.split('\n'):
541-
if' Push URL:'inline:
542-
yieldline.split(': ')[-1]
539+
try:
540+
remote_details=self.repo.git.remote("show",self.name)
541+
forlineinremote_details.split('\n'):
542+
if' Push URL:'inline:
543+
yieldline.split(': ')[-1]
544+
exceptGitCommandErrorasex:
545+
ifany([msginstr(ex)formsgin ['correct access rights','cannot run ssh']]):
546+
# If ssh is not setup to access this repository, see issue 694
547+
result=Git().execute(['git','config','--get','remote.%s.url'%self.name])
548+
yieldresult
549+
else:
550+
raiseex
543551
else:
544552
raiseex
545553

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp