From 3e9982ab3877eb8fe0a8c0cb3d847ac0913c7336 Mon Sep 17 00:00:00 2001 From: Carl Dong Date: Fri, 26 Feb 2021 17:38:35 -0500 Subject: [PATCH] contrib: Silence git-describe when looking for tag Otherwise, it prints a rather disturbing message to stderr: fatal: no tag exactly matches '' --- contrib/gitian-descriptors/assign_DISTNAME | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/gitian-descriptors/assign_DISTNAME b/contrib/gitian-descriptors/assign_DISTNAME index a2ca768aaa7..330fbc041b3 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)"