Skip to content

Commit 7724ae7

Browse files
committed
🚒 Minor improvement of guess_repo_slug
1 parent 8a21219 commit 7724ae7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

git_repo/services/service.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ def guess_repo_slug(cls, repository, service, resolve_targets=None):
101101
targets = (service.name, 'upstream', 'origin')
102102
for remote in repository.remotes:
103103
if remote.name in targets:
104-
for url in remote.urls:
105-
return cls.convert_url_into_slug(url)
104+
return cls.convert_url_into_slug(remote.url)
106105
return None
107106

108107
@classmethod

0 commit comments

Comments
 (0)