From 38b7b2ed72b1f0f57bd9800c7fbb7b7c98a20ed0 Mon Sep 17 00:00:00 2001 From: Carl Dong Date: Tue, 17 Nov 2020 17:06:14 -0500 Subject: [PATCH] genbuild: Specify rev-parse length --- share/genbuild.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/genbuild.sh b/share/genbuild.sh index d8f3429f7a9..fe89ae1fdef 100755 --- a/share/genbuild.sh +++ b/share/genbuild.sh @@ -31,7 +31,7 @@ if [ "${BITCOIN_GENBUILD_NO_GIT}" != "1" ] && [ -e "$(command -v git)" ] && [ "$ fi # otherwise generate suffix from git, i.e. string like "59887e8-dirty" - GIT_COMMIT=$(git rev-parse --short HEAD) + GIT_COMMIT=$(git rev-parse --short=12 HEAD) git diff-index --quiet HEAD -- || GIT_COMMIT="$GIT_COMMIT-dirty" fi