We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ffa8b6e + b4bfedc commit f464d00Copy full SHA for f464d00
Makefile.in
@@ -24,11 +24,11 @@ endif
24
25
CFG_BUILD_DATE = $(shell date +%F)
26
27
-ifeq ($(wildcard .git),)
+ifeq ($(wildcard $(CFG_SRC_DIR)/.git),)
28
CFG_VERSION = $(CFG_RELEASE) (built $(CFG_BUILD_DATE))
29
else
30
-CFG_VER_DATE = $(shell git log -1 --date=short --pretty=format:'%cd')
31
-CFG_VER_HASH = $(shell git rev-parse --short HEAD)
+CFG_VER_DATE = $(shell git --git-dir='$(CFG_SRC_DIR).git' log -1 --date=short --pretty=format:'%cd')
+CFG_VER_HASH = $(shell git --git-dir='$(CFG_SRC_DIR).git' rev-parse --short HEAD)
32
CFG_VERSION = $(CFG_RELEASE) ($(CFG_VER_HASH) $(CFG_VER_DATE))
33
endif
34
PKG_NAME = cargo-$(CFG_PACKAGE_VERS)
0 commit comments