Skip to content

Commit 50ea9f5

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

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
@@ -25,7 +25,7 @@ REGISTRY ?= stashed
2525

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

0 commit comments

Comments
 (0)