[DEBUG] correct the check of tracking branch

This commit is contained in:
Edouard DUPIN 2019-07-31 00:15:10 +02:00
parent 8660b5b376
commit 4d15e21c12

View File

@ -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]