Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit c745675

Browse files
committed
[[ Build ]] Use 10 hexits from commit hash for staging area folder name
1 parent 0299db9 commit c745675

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

buildbot.mk

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@
2323
# Load version information
2424
include version
2525

26+
GIT_HASH_HEXIT_COUNT=10
27+
2628
# Get git commit information
2729
ifeq ($(BUILD_EDITION),commercial)
28-
GIT_VERSION=g$(shell git --git-dir=../.git rev-parse --short HEAD)
30+
GIT_VERSION=g$(shell git --git-dir=../.git rev-parse --short=$(GIT_HASH_HEXIT_COUNT) HEAD)
2931
else
30-
GIT_VERSION=g$(shell git rev-parse --short HEAD)
32+
GIT_VERSION=g$(shell git rev-parse --short=$(GIT_HASH_HEXIT_COUNT) HEAD)
3133
endif
3234

3335
################################################################

0 commit comments

Comments
 (0)