diff --git a/.copr/Makefile b/.copr/Makefile index 49a4450a06..0b2e1c8f26 100644 --- a/.copr/Makefile +++ b/.copr/Makefile @@ -5,7 +5,7 @@ outdir := $(CURDIR) tmpdir := build gitdir := $(PWD)/.git -rev := $(shell sed 's/\(.......\).*/\1/' $(gitdir)/$$(sed -n '/^ref:/{s/.* //;p}' $(gitdir)/HEAD)) +rev := $(shell git rev-list HEAD | head -n1 | cut -c -7) date := $(shell date +%Y%m%d.%H%M) version := $(shell sed -n '/Version:/{s/.* //;p}' $(spec))