From e4031ced3923aad4b80e71cfabc96365329b58ef Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Tue, 31 Jan 2023 15:08:12 +0100 Subject: [PATCH] Fix git branch shell command Signed-off-by: Evan Lezar --- versions.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versions.mk b/versions.mk index 6b2f23c2..98a08869 100644 --- a/versions.mk +++ b/versions.mk @@ -29,5 +29,5 @@ CUDA_VERSION := 11.8.0 GOLANG_VERSION := 1.18.8 GIT_COMMIT ?= $(shell git describe --match="" --dirty --long --always --abbrev=40 2> /dev/null || echo "") -GIT_BRANCH ?= $(git rev-parse --abbrev-ref HEAD 2> /dev/null || echo "${GIT_COMMIT}") +GIT_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD 2> /dev/null || echo "${GIT_COMMIT}") SOURCE_DATE_EPOCH ?= $(shell git log -1 --format=%ct 2> /dev/null || echo "")