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.
This commit is contained in:
Carl Dong 2020-05-04 13:00:08 -04:00
parent 27e63e01cc
commit bfe1ba2f5b
No known key found for this signature in database
GPG key ID: 0CC52153197991A5

View file

@ -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}"