Skip to content

Commit 56cc1fa

Browse files
committed
fix: properly set GIT_TAG
1 parent 56c2ba2 commit 56cc1fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
44
# Current git commit hash
55
GIT_COMMIT_HASH := $(shell git show --no-patch --no-notes --pretty='%h' HEAD)
66
# Current git tag
7-
GIT_TAG := $(shell git describe --tags --exact-match || "")
7+
GIT_TAG := $(shell git describe --tags --exact-match 2>/dev/null || echo "")
88
ifeq ($(GIT_TAG),)
99
VERSION := $(BRANCH).$(GIT_COMMIT_HASH)
1010
else

0 commit comments

Comments
 (0)