don't assume all git urls are the same
This commit is contained in:
parent
cf2c5c07ad
commit
9f26012ddd
1 changed files with 3 additions and 2 deletions
|
@ -43,8 +43,9 @@ class Git(BaseProject):
|
||||||
sections = self._parse_config()
|
sections = self._parse_config()
|
||||||
for section in sections:
|
for section in sections:
|
||||||
if section.split(' ', 1)[0] == 'remote' and 'url' in sections[section]:
|
if section.split(' ', 1)[0] == 'remote' and 'url' in sections[section]:
|
||||||
remote = sections[section]['url'].rsplit(':', 1)[1].rsplit('/', 1)[1].split('.git', 1)[0]
|
remote = sections[section]['url'].rsplit(':', 1)[-1].rsplit('/', 1)[-1].split('.git', 1)[0]
|
||||||
tags.append(remote)
|
if remote:
|
||||||
|
tags.append(remote)
|
||||||
branch = self._current_branch()
|
branch = self._current_branch()
|
||||||
if branch is not None:
|
if branch is not None:
|
||||||
tags.append(branch)
|
tags.append(branch)
|
||||||
|
|
Loading…
Reference in a new issue