[DEBUG] correct the check of tracking branch
This commit is contained in:
parent
8660b5b376
commit
4d15e21c12
@ -138,6 +138,9 @@ def get_current_tracking_branch(path_repository):
|
||||
cmd = "git rev-parse --abbrev-ref --symbolic-full-name @{u}"
|
||||
debug.verbose("execute : " + cmd)
|
||||
return_value = multiprocess.run_command(cmd, cwd=path_repository)
|
||||
if return_value[1] == "@{u}":
|
||||
debug.warning("in '" + path_repository + "' no tracking branch is specify")
|
||||
return None
|
||||
generic_display_error(return_value, "get_current_tracking_branch", error_only=True)
|
||||
return return_value[1]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user