Skip to content

Commit

Permalink
rel-builds: Specify core.abbrev for git-rev-parse
Browse files Browse the repository at this point in the history
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.

Github-Pull: bitcoin#18741
Rebased-From: bfe1ba2
  • Loading branch information
dongcarl authored and luke-jr committed May 7, 2020
1 parent 53d39f0 commit e4193cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/gitian-descriptors/assign_DISTNAME
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

0 comments on commit e4193cd

Please sign in to comment.