Skip to content

🎧 Your Personal Streaming Service

Improve git-vs-tarball detection (#1423)

whorfin4bc4daa68fb7
diff --git a/Makefile b/Makefile
index 80cf60644..59e1da6d4 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