From ded637735ade86a0a1c81697f56b0a98b43e843e Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Wed, 6 Mar 2024 14:24:07 +0000 Subject: [PATCH] Revert "Hardcode version" This reverts commit 0e045771048e5e72fee5fb626999cf21d25043c2. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 04f90e4972..bc3837f065 100644 --- a/Makefile +++ b/Makefile @@ -91,7 +91,7 @@ STORED_VERSION=$(shell cat $(STORED_VERSION_FILE) 2>/dev/null) ifneq ($(STORED_VERSION),) FORGEJO_VERSION ?= $(STORED_VERSION) else - FORGEJO_VERSION ?= v7.0.0-dev-1281-gffe2962dfa+${GITEA_COMPATIBILITY} + FORGEJO_VERSION ?= $(shell git describe --exclude '*-test' --tags --always | sed 's/^v//')+${GITEA_COMPATIBILITY} endif FORGEJO_VERSION_MAJOR=$(shell echo $(FORGEJO_VERSION) | sed -e 's/\..*//')