aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2020-11-17 17:06:14 -0500
committerCarl Dong <contact@carldong.me>2021-01-08 11:40:01 -0500
commit38b7b2ed72b1f0f57bd9800c7fbb7b7c98a20ed0 (patch)
tree0818f8bd5985054b8222d4d9773e7ddba11dbb97 /share
parent036dc740da3239cdcc13e0f299ab95b456f7118b (diff)
downloadbitcoin-38b7b2ed72b1f0f57bd9800c7fbb7b7c98a20ed0.tar.xz
genbuild: Specify rev-parse length
Diffstat (limited to 'share')
-rwxr-xr-xshare/genbuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/genbuild.sh b/share/genbuild.sh
index d8f3429f7a..fe89ae1fde 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