Use --short=16 for the Git commit hash in the image version.
@@ -221,7 +221,7 @@ def main(argv=None):
argv = sys.argv[1:]
try:
- git_commit = subprocess.check_output(['git', 'rev-parse', '--verify', '--short', 'HEAD'],
+ git_commit = subprocess.check_output(['git', 'rev-parse', '--verify', '--short=16', 'HEAD'],
universal_newlines=True).strip()
except subprocess.CalledProcessError:
print("Could not get current Git commit hash. You have to run "
