From ad41b32db458d437d67aa03f399487ef8b0f3008 Mon Sep 17 00:00:00 2001 From: Anthony Lawn Date: Wed, 6 Mar 2024 07:34:13 -0600 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/\..*//')