Skip to content

Commit 14fb5ea

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

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
@@ -26,7 +26,7 @@ API_GROUPS ?= appcatalog:v1alpha1 metrics:v1alpha1
2626

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

0 commit comments

Comments
 (0)