Skip to content

Commit

Permalink
build: exclude older git tags from prefixing version hash
Browse files Browse the repository at this point in the history
  • Loading branch information
GalaxyShard committed Oct 6, 2024
1 parent 0c67281 commit 24bedf0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ SDK_VERSION ?= $(shell git describe --tags --exact-match --dirty 2>/dev/null)

# Fallback to commit hash
ifeq ($(SDK_VERSION),)
VERSION_ID := "commit $(shell git describe --always --dirty 2>/dev/null)"
# --exclude to prevent any older tags from being displayed
VERSION_ID := "commit $(shell git describe --always --dirty --exclude '*' 2>/dev/null)"
else
VERSION_ID := "BlocksDS $(SDK_VERSION)"
endif
Expand Down

0 comments on commit 24bedf0

Please sign in to comment.