diff --git a/Makefile b/Makefile index 80cf6064..59e1da6d 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ GO_VERSION=$(shell grep "^go " go.mod | cut -f 2 -d ' ') NODE_VERSION=$(shell cat .nvmrc) -ifneq ("$(wildcard .git)","") +ifneq ("$(wildcard .git/HEAD)","") GIT_SHA=$(shell git rev-parse --short HEAD) GIT_TAG=$(shell git describe --tags `git rev-list --tags --max-count=1`) else