upgraded wakatime module from wakatime/wakatime
This commit is contained in:
parent
beff444233
commit
3e69b8c66c
1 changed files with 3 additions and 6 deletions
|
@ -43,11 +43,8 @@ class Git(BaseProject):
|
|||
sections = self._parse_config()
|
||||
for section in sections:
|
||||
if section.split(' ', 1)[0] == 'remote' and 'url' in sections[section]:
|
||||
remote = sections[section]['url'].rsplit(':', 1)[1]
|
||||
try:
|
||||
remote = remote.rsplit('/' , 1)[1].split('.git' , 1)[0]
|
||||
except:
|
||||
pass
|
||||
remote = sections[section]['url'].rsplit(':', 1)[-1].rsplit('/', 1)[-1].split('.git', 1)[0]
|
||||
if remote:
|
||||
tags.append(remote)
|
||||
branch = self._current_branch()
|
||||
if branch is not None:
|
||||
|
|
Loading…
Reference in a new issue