Only split once for git remote/branch
This commit is contained in:
@@ -91,7 +91,7 @@ def getVersion():
|
||||
|
||||
else:
|
||||
remote_branch, err = runGit('rev-parse --abbrev-ref --symbolic-full-name @{u}')
|
||||
remote_branch = remote_branch.split('/')
|
||||
remote_branch = remote_branch.rsplit('/', 1)
|
||||
if len(remote_branch) == 2:
|
||||
remote_name, branch_name = remote_branch
|
||||
else:
|
||||
|
Reference in New Issue
Block a user