Skip to content

Commit 61e3e55

Browse files
committed
Abbreviate SHA hashes to at least 10 characters
That solves a problem with builds of older tags when new commits with the same prefix are added: ``` 0.104.0 gitref: HEAD sha:2045d0e buildId:0 0.104.0 gitref: HEAD sha:2045d0e0 buildId:0 ```
1 parent 09ef059 commit 61e3e55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/generate_extension_version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if [ -f $gitIndexDir ]; then
3333
else
3434
# set GIT_VERSION with current branch's name and the short sha of the HEAD
3535
GIT_VERSION=$(git rev-parse --abbrev-ref HEAD)
36-
GIT_SHA=$(git rev-parse --short HEAD)
36+
GIT_SHA=$(git rev-parse --short=10 HEAD)
3737
fi
3838

3939
if [[ "$GIT_VERSION" == "" ]] || [[ "$GIT_SHA" == "" ]]; then

0 commit comments

Comments
 (0)