Skip to content

Commit 4227f93

Browse files
committed
tooling: Fix version "unknown" when using git worktree
1 parent e903bea commit 4227f93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile.package

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ SHELL := /bin/bash
2525
DATE := $(shell date +"%Y%m%d")
2626
TIMESTAMP := $(shell date -u +'%Y-%m-%dT%H:%M:%SZ')
2727

28-
HAS_GIT := $(shell [ -d ${PROJECT_ROOT}/.git ] && echo "true")
28+
HAS_GIT := $(shell [ -e ${PROJECT_ROOT}/.git ] && echo "true")
2929
ifeq (${PROJECT_VERSION},unknown)
3030
ifeq (${HAS_GIT},true)
3131
GIT_COMMIT_HASH := $(shell git log -1 --format=%h)

0 commit comments

Comments
 (0)