Commit fdda229 1 parent 264cdc5 commit fdda229 Copy full SHA for fdda229
File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ PYTHON ?= /usr/bin/python3
4
4
OS_CODENAME ?= $(shell grep VERSION_CODENAME= /etc/os-release | cut -f2 -d=)
5
5
6
6
ifneq ("$(wildcard .git) ","")
7
- RELEASE ?= $(or $(shell git describe --all --match master --match 'release-* ' --abbrev=0 HEAD 2>/dev/null | sed 's@heads/@@g') , branch)
7
+ RELEASE ?= $(or $(shell git rev-parse --abbrev-ref HEAD | grep -v '^stable$$') ,\
8
+ $(shell git describe --all --match 'release-* ' --match 'origin/release-* ' --abbrev=0 HEAD 2>/dev/null | grep -o '[^/]* $$') ,\
9
+ unknown)
8
10
COMMIT ?= $(shell git rev-parse HEAD)
9
11
SOURCE_DATE_EPOCH ?= $(or $(shell git show -s --format="% ct" $(COMMIT ) ) , $(shell date "+% s") )
10
12
VERSION ?= $(shell $(PYTHON ) ./version.py $(SOURCE_DATE_EPOCH ) $(RELEASE ) )
You can’t perform that action at this time.
0 commit comments