From 2c5a47a275c1580b0b33998c25963af4293816ac Mon Sep 17 00:00:00 2001 From: Skyxim Date: Mon, 2 May 2022 14:43:01 +0800 Subject: [PATCH] fix: Failed to get version tag --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index edb5be99..f0a0618d 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ ifeq ($(BRANCH),Alpha) VERSION=alpha-$(shell git rev-parse --short HEAD) else ifeq ($(BRANCH),Beta) VERSION=beta-$(shell git rev-parse --short HEAD) -else ifeq ($(BRANCH),HEAD) +else ifeq ($(BRANCH),) VERSION=$(shell git describe --tags) else VERSION=unknown