Skip to content

Commit ea804d4

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

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
@@ -24,7 +24,7 @@ REGISTRY ?= stashed
2424

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

0 commit comments

Comments
 (0)