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:
parent
eaf86a22d3
commit
65d0867a25
2 changed files with 7 additions and 6 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue