Merge pull request #673 from rafcabezas/devel

Fix registration's params get_git_remote()
pull/674/head
George Hotz 6 years ago committed by GitHub
commit 0aa41e348e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      selfdrive/registration.py

@ -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()

Loading…
Cancel
Save