mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-23 00:38:26 +00:00
Fix GIT_BRANCH command
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
50afd443fc
commit
846ac347fe
@ -29,5 +29,5 @@ CUDA_VERSION := 11.8.0
|
|||||||
GOLANG_VERSION := 1.18.8
|
GOLANG_VERSION := 1.18.8
|
||||||
|
|
||||||
GIT_COMMIT ?= $(shell git describe --match="" --dirty --long --always --abbrev=40 2> /dev/null || echo "")
|
GIT_COMMIT ?= $(shell git describe --match="" --dirty --long --always --abbrev=40 2> /dev/null || echo "")
|
||||||
GIT_BRANCH ?= $(git rev-parse --abbrev-ref HEAD /dev/null || echo "${GIT_COMMIT}")
|
GIT_BRANCH ?= $(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 "")
|
SOURCE_DATE_EPOCH ?= $(shell git log -1 --format=%ct 2> /dev/null || echo "")
|
||||||
|
Loading…
Reference in New Issue
Block a user