Skip to content

Commit

Permalink
FIX: match only version tags when determining firmware version
Browse files Browse the repository at this point in the history
  • Loading branch information
r2axz committed Apr 26, 2022
1 parent d05b316 commit aa23894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ ifneq ($(FIRMWARE_ORIGIN),)
LDFLAGS += -Wl,-section-start=.isr_vector=$(FIRMWARE_ORIGIN)
endif

GIT_VERSION := $(subst ., ,$(subst v,,$(shell git describe --abbrev=0 --tags 2>/dev/null || true)))
GIT_VERSION := $(subst ., ,$(subst v,,$(shell git describe --abbrev=0 --tags --match "v*" 2>/dev/null || true)))

ifneq ($(GIT_VERSION),)
GIT_VERSION_MAJOR := $(word 1, $(GIT_VERSION))
Expand Down

0 comments on commit aa23894

Please sign in to comment.