|
|
@ -34,7 +34,7 @@ def get_git_remote(default=None): |
|
|
|
tracking_remote = run_cmd(["git", "config", "branch." + local_branch + ".remote"]) |
|
|
|
tracking_remote = run_cmd(["git", "config", "branch." + local_branch + ".remote"]) |
|
|
|
return run_cmd(["git", "config", "remote." + tracking_remote + ".url"]) |
|
|
|
return run_cmd(["git", "config", "remote." + tracking_remote + ".url"]) |
|
|
|
except subprocess.CalledProcessError: # Not on a branch, fallback |
|
|
|
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: |
|
|
|
with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "common", "version.h")) as _versionf: |
|
|
|