We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56c2ba2 commit 56cc1faCopy full SHA for 56cc1fa
Makefile
@@ -4,7 +4,7 @@ BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
4
# Current git commit hash
5
GIT_COMMIT_HASH := $(shell git show --no-patch --no-notes --pretty='%h' HEAD)
6
# Current git tag
7
-GIT_TAG := $(shell git describe --tags --exact-match || "")
+GIT_TAG := $(shell git describe --tags --exact-match 2>/dev/null || echo "")
8
ifeq ($(GIT_TAG),)
9
VERSION := $(BRANCH).$(GIT_COMMIT_HASH)
10
else
0 commit comments