Skip to content

Commit 38b7b2e

Browse files
committed
genbuild: Specify rev-parse length
1 parent 036dc74 commit 38b7b2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

share/genbuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if [ "${BITCOIN_GENBUILD_NO_GIT}" != "1" ] && [ -e "$(command -v git)" ] && [ "$
3131
fi
3232

3333
# otherwise generate suffix from git, i.e. string like "59887e8-dirty"
34-
GIT_COMMIT=$(git rev-parse --short HEAD)
34+
GIT_COMMIT=$(git rev-parse --short=12 HEAD)
3535
git diff-index --quiet HEAD -- || GIT_COMMIT="$GIT_COMMIT-dirty"
3636
fi
3737

0 commit comments

Comments
 (0)