Procházet zdrojové kódy

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

fix: incorrect git tag being injected as version
Kailash Nadh před 4 roky
rodič
revize
2109ee16f6
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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