Explorar o código

git-url: use git branch --show-current

raylu %!s(int64=2) %!d(string=hai) anos
pai
achega
de6e6ba941
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      git-url

+ 1 - 1
git-url

@@ -9,7 +9,7 @@ def oneliner(*args):
 	return subprocess.check_output(args, universal_newlines=True).strip()
 
 commit = oneliner('git', 'rev-parse', 'HEAD')
-local_branch = oneliner('git', 'name-rev', '--name-only', 'HEAD')
+local_branch = oneliner('git', 'branch', '--show-current')
 
 tag = None
 if local_branch.startswith('tags/'):