Skip to content

Commit c3b0f94

Browse files
committed
Revert "Use '--long' arg with 'git describe'"
This reverts commit f827791.
1 parent b084032 commit c3b0f94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib.Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ ifeq ($(GIT_USE_SSH),true)
252252
endif
253253

254254
# Get version from git.
255-
GIT_VERSION:=$(shell git describe --tags --dirty --long --always --abbrev=12)
255+
GIT_VERSION:=$(shell git describe --tags --dirty --always --abbrev=12)
256256

257257
# Figure out version information. To support builds from release tarballs, we default to
258258
# <unknown> if this isn't a git checkout.
@@ -262,7 +262,7 @@ BUILD_ID:=$(shell git rev-parse HEAD || uuidgen | sed 's/-//g')
262262
# Lazily set the git version we embed into the binaries we build. We want the
263263
# git tag at the time we build the binary.
264264
# Variables elsewhere that depend on this (such as LDFLAGS) must also be lazy.
265-
GIT_DESCRIPTION=$(shell git describe --tags --dirty --long --always --abbrev=12 || echo '<unknown>')
265+
GIT_DESCRIPTION=$(shell git describe --tags --dirty --always --abbrev=12 || echo '<unknown>')
266266

267267
# Calculate a timestamp for any build artefacts.
268268
ifneq ($(OS),Windows_NT)

0 commit comments

Comments
 (0)