aboutsummaryrefslogtreecommitdiffstats
path: root/community/gitea/allow-to-set-version.patch
blob: 3e2d62a39933a99e9717ec4457445fac6e7076a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- ./Makefile
+++ ./Makefile
@@ -33,7 +33,7 @@
 	else
 		VERSION ?= master
 	endif
-	GITEA_VERSION := $(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')
+	GITEA_VERSION ?= $(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')
 endif
 
 LDFLAGS := -X "main.Version=$(GITEA_VERSION)" -X "main.Tags=$(TAGS)"