diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2020-12-15 20:49:18 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2021-01-02 21:31:20 +0100 |
commit | 65d0867a25e32915e73cadf4bdc90c58ed11bfc1 (patch) | |
tree | 6a8a52b06e04acb71f38a6d8196e6b0ac2581d14 /utils | |
parent | eaf86a22d33c1f82f2989908b9a9a3ca775448d5 (diff) |
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
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/common/gitscraper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/common/gitscraper.py b/utils/common/gitscraper.py index c7a2c3a563..5b3b316115 100755 --- a/utils/common/gitscraper.py +++ b/utils/common/gitscraper.py @@ -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() |