From bfe1ba2f5b36056e0c41edf8206b93d3d83098df Mon Sep 17 00:00:00 2001 From: Carl Dong Date: Mon, 4 May 2020 13:00:08 -0400 Subject: rel-builds: Specify core.abbrev for git-rev-parse Chose 12 because the kernel uses it: https://public-inbox.org/git/CA+55aFy0_pwtFOYS1Tmnxipw9ZkRNCQHmoYyegO00pjMiZQfbg@mail.gmail.com/raw And also because it's a nice number. --- contrib/gitian-descriptors/assign_DISTNAME | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/gitian-descriptors/assign_DISTNAME') diff --git a/contrib/gitian-descriptors/assign_DISTNAME b/contrib/gitian-descriptors/assign_DISTNAME index a1ab3f7cbd..a2ca768aaa 100755 --- a/contrib/gitian-descriptors/assign_DISTNAME +++ b/contrib/gitian-descriptors/assign_DISTNAME @@ -7,6 +7,6 @@ if RECENT_TAG="$(git describe --exact-match HEAD)"; then VERSION="${RECENT_TAG#v}" else - VERSION="$(git rev-parse --short HEAD)" + VERSION="$(git rev-parse --short=12 HEAD)" fi DISTNAME="bitcoin-${VERSION}" -- cgit v1.2.3