1
0
Fork 0
forked from len0rd/rockbox

rbutil: Add option to langstat to pass git hash.

Don't always operate on the remote head, instead default to the local
HEAD, and allow passing a hash to use for calculating statistics.

Change-Id: I420308e66769689c1dfac56e19058b097a0533a2
This commit is contained in:
Dominik Riebeling 2020-12-15 20:49:18 +01:00
parent eaf86a22d3
commit 65d0867a25
2 changed files with 7 additions and 6 deletions

View file

@ -43,7 +43,7 @@ def get_refs(repo):
'''
print("Getting list of refs")
output = subprocess.Popen(
["git", "show-ref", "--abbrev"],
["git", "show-ref", "--abbrev", "--head"],
stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=repo)
cmdout = output.communicate()
refs = dict()