Skip to content

Commit ca59e17

Browse files
committed
[NRL-793] Handle case in get-current-info.sh where git describe fails to get tags
1 parent a6d0e39 commit ca59e17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/get-current-info.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -o errexit -o nounset -o pipefail
44

55
BRANCH_NAME="$(git rev-parse --abbrev-ref HEAD)"
6-
TAG_NAME="$(git describe --tags)"
6+
TAG_NAME="$(git describe --tags || echo "no-tags")"
77
SHORT_COMMIT_HASH="$(git rev-parse --short=8 HEAD)"
88

99
if [ "${BRANCH_NAME}" == "HEAD" ]; then

0 commit comments

Comments
 (0)