From c3b0f9489f5be37eb56279075fdbb3c11a342588 Mon Sep 17 00:00:00 2001 From: Daniel Fox Date: Wed, 15 Nov 2023 14:23:10 -0800 Subject: [PATCH] Revert "Use '--long' arg with 'git describe'" This reverts commit f82779189cfe70f884d352c05f3698ac84cf266d. --- lib.Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib.Makefile b/lib.Makefile index 80faba7cb89..9e2fee2cbb8 100644 --- a/lib.Makefile +++ b/lib.Makefile @@ -252,7 +252,7 @@ ifeq ($(GIT_USE_SSH),true) endif # Get version from git. -GIT_VERSION:=$(shell git describe --tags --dirty --long --always --abbrev=12) +GIT_VERSION:=$(shell git describe --tags --dirty --always --abbrev=12) # Figure out version information. To support builds from release tarballs, we default to # if this isn't a git checkout. @@ -262,7 +262,7 @@ BUILD_ID:=$(shell git rev-parse HEAD || uuidgen | sed 's/-//g') # Lazily set the git version we embed into the binaries we build. We want the # git tag at the time we build the binary. # Variables elsewhere that depend on this (such as LDFLAGS) must also be lazy. -GIT_DESCRIPTION=$(shell git describe --tags --dirty --long --always --abbrev=12 || echo '') +GIT_DESCRIPTION=$(shell git describe --tags --dirty --always --abbrev=12 || echo '') # Calculate a timestamp for any build artefacts. ifneq ($(OS),Windows_NT)