From 65d0867a25e32915e73cadf4bdc90c58ed11bfc1 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Tue, 15 Dec 2020 20:49:18 +0100 Subject: 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 --- utils/common/gitscraper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/common') 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() -- cgit v1.2.3