fix get_git_remote not returning a value

pull/1785/head
Adeeb Shihadeh 2020-08-12 13:50:51 -07:00
parent 100f2958fc
commit 0394b8b921
1 changed files with 1 additions and 1 deletions

View File

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