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

Commitc780aff

Browse files
committed
Switching theurls property to usegit remote show instead ofgit remote get-url
`get-url` is a new API that is not widely available yet (introduced in git 2.7.3), andprovokes failure on travis.Signed-off-by: Guyzmo <guyzmo+github@m0g.net>
1 parentb366d3f commitc780aff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎git/remote.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -477,10 +477,10 @@ def delete_url(self, url, **kwargs):
477477
defurls(self):
478478
""":return: Iterator yielding all configured URL targets on a remote
479479
as strings"""
480-
scmd='get-url'
481-
kwargs= {'insert_kwargs_after':scmd}
482-
forurlinself.repo.git.remote(scmd,self.name,all=True,**kwargs).split('\n'):
483-
yieldurl
480+
remote_details=self.repo.git.remote("show",self.name)
481+
forlineinremote_details.split('\n'):
482+
if' Push URL:'inline:
483+
yieldline.split(': ')[-1]
484484

485485
@property
486486
defrefs(self):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp