Skip to content

Commit 3e9982a

Browse files
committed
contrib: Silence git-describe when looking for tag
Otherwise, it prints a rather disturbing message to stderr: fatal: no tag exactly matches '<hash>'
1 parent d5a71e9 commit 3e9982a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/gitian-descriptors/assign_DISTNAME

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# A helper script to be sourced into the gitian descriptors
66

7-
if RECENT_TAG="$(git describe --exact-match HEAD)"; then
7+
if RECENT_TAG="$(git describe --exact-match HEAD 2> /dev/null)"; then
88
VERSION="${RECENT_TAG#v}"
99
else
1010
VERSION="$(git rev-parse --short=12 HEAD)"

0 commit comments

Comments
 (0)