Skip to content

Commit

Permalink
Revert "Use '--long' arg with 'git describe'"
Browse files Browse the repository at this point in the history
This reverts commit f827791.
  • Loading branch information
danudey committed Nov 15, 2023
1 parent b084032 commit c3b0f94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
# <unknown> if this isn't a git checkout.
Expand All @@ -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 '<unknown>')
GIT_DESCRIPTION=$(shell git describe --tags --dirty --always --abbrev=12 || echo '<unknown>')

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

0 comments on commit c3b0f94

Please sign in to comment.