Skip to content

Commit

Permalink
Don't show long form in git describe if we are on a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
brainplot committed Sep 21, 2021
1 parent 06d8928 commit 0e87eec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ GOFMT ?= gofmt
PACKAGE := $(shell $(GOCMD) list)
NAME := $(notdir $(PACKAGE))
FULLCOMMIT := $(shell git rev-parse HEAD)
TAG := $(shell git describe --long --dirty)
TAG := $(shell git describe --dirty)
VERSION := $(TAG:v%=%)
BUILD_VERSION := $(subst -,.,$(VERSION))

Expand Down

0 comments on commit 0e87eec

Please sign in to comment.