mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-12 02:07:39 +01:00
contrib: Silence git-describe when looking for tag
Otherwise, it prints a rather disturbing message to stderr: fatal: no tag exactly matches '<hash>'
This commit is contained in:
parent
d5a71e9785
commit
3e9982ab38
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
||||||
#
|
#
|
||||||
# A helper script to be sourced into the gitian descriptors
|
# A helper script to be sourced into the gitian descriptors
|
||||||
|
|
||||||
if RECENT_TAG="$(git describe --exact-match HEAD)"; then
|
if RECENT_TAG="$(git describe --exact-match HEAD 2> /dev/null)"; then
|
||||||
VERSION="${RECENT_TAG#v}"
|
VERSION="${RECENT_TAG#v}"
|
||||||
else
|
else
|
||||||
VERSION="$(git rev-parse --short=12 HEAD)"
|
VERSION="$(git rev-parse --short=12 HEAD)"
|
||||||
|
|
Loading…
Add table
Reference in a new issue