Showing only last 6 chars of git rev

This commit is contained in:
Magnus Persson 2022-03-21 22:05:13 +01:00
parent d6227b6dad
commit ae4d5eb8a2

View File

@ -5,4 +5,5 @@ revision = (
.strip() .strip()
.decode("utf-8") .decode("utf-8")
) )
print("-D CFG_GITREV='\"%s\"'" % revision) revision = revision[-6:]
print("-D CFG_GITREV='\"..%s\"'" % revision)