aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2021-02-26 17:38:35 -0500
committerCarl Dong <contact@carldong.me>2021-04-01 16:53:17 -0400
commit3e9982ab3877eb8fe0a8c0cb3d847ac0913c7336 (patch)
treef0fddb7f010af15a6829dd2abef11e02afe6b445 /contrib
parentd5a71e97853ea9e1b879e8c76bfb01d4bef33172 (diff)
contrib: Silence git-describe when looking for tag
Otherwise, it prints a rather disturbing message to stderr: fatal: no tag exactly matches '<hash>'
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/gitian-descriptors/assign_DISTNAME2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/gitian-descriptors/assign_DISTNAME b/contrib/gitian-descriptors/assign_DISTNAME
index a2ca768aaa..330fbc041b 100755
--- a/contrib/gitian-descriptors/assign_DISTNAME
+++ b/contrib/gitian-descriptors/assign_DISTNAME
@@ -4,7 +4,7 @@
#
# 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}"
else
VERSION="$(git rev-parse --short=12 HEAD)"