Skip to content

Commit 3beb1b6

Browse files
committed
Makefile: use --tags in git describe so lightweight tags resolve
Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent 7566091 commit 3beb1b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ COMPRESS ?= no
2121

2222
# This version-strategy uses git tags to set the version string
2323
git_branch := $(shell git rev-parse --abbrev-ref HEAD)
24-
git_tag := $(shell git describe --exact-match --abbrev=0 2>/dev/null || echo "")
24+
git_tag := $(shell git describe --tags --exact-match --abbrev=0 2>/dev/null || echo "")
2525
commit_hash := $(shell git rev-parse --verify HEAD)
2626
commit_timestamp := $(shell date --date="@$$(git show -s --format=%ct)" --utc +%FT%T)
2727

0 commit comments

Comments
 (0)