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)