mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 16:22:57 -07:00
Check git remote branch before splitting
This commit is contained in:
parent
08fdcac240
commit
a85d4a678d
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ def getVersion():
|
|||
|
||||
else:
|
||||
remote_branch, err = runGit('rev-parse --abbrev-ref --symbolic-full-name @{u}')
|
||||
remote_branch = remote_branch.rsplit('/', 1)
|
||||
remote_branch = remote_branch.rsplit('/', 1) if remote_branch else []
|
||||
if len(remote_branch) == 2:
|
||||
remote_name, branch_name = remote_branch
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue