From f6c129ed20b0143b8f46328f22afeedb38124b6e Mon Sep 17 00:00:00 2001 From: Marcel van der Boom Date: Thu, 27 Jun 2019 21:25:22 +0200 Subject: [PATCH] Construct version from annotated tags only Fixes issue 125 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2e798aa..f5f071c 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -GITREV=`git describe --tags | cut -c 2-` +GITREV=`git describe | cut -c 2-` LDFLAGS=-ldflags="-X 'github.com/writeas/writefreely.softwareVer=$(GITREV)'" GOCMD=go @@ -95,7 +95,7 @@ release-linux : clean ui release-docker : $(DOCKERCMD) push $(IMAGE_NAME) - + ui : force_look cd less/; $(MAKE) $(MFLAGS)