Browse Source

Merge pull request #198 from knadh/fix-injected-version

fix: incorrect git tag being injected as version
Kailash Nadh 4 năm trước cách đây
mục cha
commit
2109ee16f6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Makefile

+ 1 - 1
Makefile

@@ -1,6 +1,6 @@
 LAST_COMMIT := $(shell git rev-parse --short HEAD)
 LAST_COMMIT_DATE := $(shell git show -s --format=%ci ${LAST_COMMIT})
-VERSION := $(shell git describe)
+VERSION := $(shell git describe --tags)
 BUILDSTR := ${VERSION} (${LAST_COMMIT} $(shell date -u +"%Y-%m-%dT%H:%M:%S%z"))
 
 BIN := listmonk