fix get_git_remote not returning a value
parent
100f2958fc
commit
0394b8b921
|
@ -34,7 +34,7 @@ def get_git_remote(default=None):
|
|||
tracking_remote = run_cmd(["git", "config", "branch." + local_branch + ".remote"])
|
||||
return run_cmd(["git", "config", "remote." + tracking_remote + ".url"])
|
||||
except subprocess.CalledProcessError: # Not on a branch, fallback
|
||||
run_cmd_default(["git", "config", "--get", "remote.origin.url"], default=default)
|
||||
return run_cmd_default(["git", "config", "--get", "remote.origin.url"], default=default)
|
||||
|
||||
|
||||
with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "common", "version.h")) as _versionf:
|
||||
|
|
Loading…
Reference in New Issue