Index: packager.py |
diff --git a/packager.py b/packager.py |
index ab9557148de8834951ea1ea93e83c55a0be18cf9..1d9819115ed169d708a40b00c96ee11bc033df06 100644 |
--- a/packager.py |
+++ b/packager.py |
@@ -72,7 +72,10 @@ def getBuildNum(baseDir): |
result = subprocess.check_output(['hg', 'id', '-R', baseDir, '-n']) |
return re.sub(r'\D', '', result) |
elif Git().istype(baseDir): |
- result = subprocess.check_output(['git', 'rev-list', 'HEAD'], cwd=baseDir) |
+ result = subprocess.check_output( |
+ ['git', 'rev-list', '--count', '--branches', '--tags'], |
+ cwd=baseDir, |
+ ) |
return str(len(result.splitlines())) |
except subprocess.CalledProcessError: |
pass |