Skip to content

Commit

Permalink
Configure git describe
Browse files Browse the repository at this point in the history
  • Loading branch information
haasted committed Sep 30, 2022
1 parent 36003fd commit 67ae28d
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 @@ -7,7 +7,7 @@ COMMIT := $(shell git log -1 --format='%H')

# don't override user values
ifeq (,$(VERSION))
VERSION := $(shell git describe --exact-match 2>/dev/null)
VERSION := $(shell git describe --exact-match --tags 2>/dev/null)
# if VERSION is empty, then populate it with branch's name and raw commit hash
ifeq (,$(VERSION))
VERSION := $(BRANCH)-$(COMMIT)
Expand Down

0 comments on commit 67ae28d

Please sign in to comment.