Fix registration's params get_git_remote()

old-commit-hash: 56b2945de4
This commit is contained in:
raf
2019-05-30 22:25:10 -04:00
committed by Raf
parent 19186767b6
commit cee9824c9b
+3 -1
View File
@@ -22,7 +22,9 @@ def get_git_branch():
return subprocess.check_output(["git", "rev-parse", "--abbrev-ref", "HEAD"]).strip()
def get_git_remote():
return subprocess.check_output(["git", "config", "--get", "remote.origin.url"]).strip()
local_branch = subprocess.check_output(["git", "name-rev", "--name-only", "HEAD"]).strip()
tracking_remote = subprocess.check_output(["git", "config", "branch."+local_branch+".remote"]).strip()
return subprocess.check_output(["git", "config", "remote."+tracking_remote+".url"]).strip()
def register():
params = Params()