aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-08-29 09:22:33 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-09-12 18:53:14 +0200
commit3f08ffa42314d9d9f7b4ad7300e4072a78daa9a0 (patch)
tree85704abd59a8414342041831d67192520aeba3a0
parenta96e82edf9720c2673caf573d42e409df3af956b (diff)
downloadbuildroot-3f08ffa42314d9d9f7b4ad7300e4072a78daa9a0.tar.gz
buildroot-3f08ffa42314d9d9f7b4ad7300e4072a78daa9a0.tar.bz2
support/scripts/pkg-stats: extract current commit id, not master
pkg-stats extracts the Buildroot commit id from which the package information was collected. However, when doing so, it always assumes we're using the master branch, by running "git log master". But in fact, pkg-stats can be run from any branch/tag, so it makes a lot more sense to use "git log HEAD". Cc: victor.huesca@bootlin.com Cc: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rwxr-xr-xsupport/scripts/pkg-stats2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
index 992c2dd7c5..6cb3a6a038 100755
--- a/support/scripts/pkg-stats
+++ b/support/scripts/pkg-stats
@@ -727,7 +727,7 @@ def __main__():
else:
package_list = None
date = datetime.datetime.utcnow()
- commit = subprocess.check_output(['git', 'log', 'master', '-n', '1',
+ commit = subprocess.check_output(['git', 'log', 'HEAD', '-n', '1',
'--pretty=format:%H']).splitlines()[0]
print("Build package list ...")
packages = get_pkglist(args.npackages, package_list)