fixed version check by using 8 digits to display SHA-1s
@@ -29,7 +29,7 @@ def detect_version(package):
elif os.path.isdir("%s/../.git" % pkg_path):
try:
os.chdir(pkg_path)
- ps = SupervisedPopen(['git', 'describe', '--tags', '--dirty', '--always'], stdout=subprocess.PIPE)
+ ps = SupervisedPopen(['git', 'describe', '--tags', '--dirty', '--always', '--abbrev=8'], stdout=subprocess.PIPE)
output = ps.stdout.read()
version = output.strip()
ps = SupervisedPopen(['git', 'show', '-s', '--format=%ci'], stdout=subprocess.PIPE)
