summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorBradley Sepos <[email protected]>2020-05-03 12:33:42 -0400
committerBradley Sepos <[email protected]>2020-05-03 12:33:42 -0400
commit0b6b6847631881bd16027c90b079c06adadf666f (patch)
tree17f683bc2ab8fc152f3918b5e81362ee61fb10b7 /make
parent0a003f67e2eb16a4acf54516d5e2a13fc60e85f9 (diff)
build: pkg: Fix git short hash to be dynamic.
Instead of using the short hash provided by git via our repo info script, we were truncating the full hash to a fixed length.
Diffstat (limited to 'make')
-rw-r--r--make/configure.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/make/configure.py b/make/configure.py
index 77fd25f4e..ab39323ed 100644
--- a/make/configure.py
+++ b/make/configure.py
@@ -863,7 +863,11 @@ class RepoProbe( ShellProbe ):
elif name == 'HASH':
self.hash = value
- self.shorthash = value[:7]
+ elif name == 'SHORTHASH':
+ if value != '':
+ self.shorthash = value
+ else:
+ self.shorthash = self.hash
# type-classification via repository URL
if self.url == project.url_repo_ssh: