Use short commit in Makefile build
This commit is contained in:
parent
34182d9c9f
commit
fe6162b2a1
2
Makefile
2
Makefile
|
@ -1,6 +1,6 @@
|
||||||
VERSION := $(shell sh -c 'git describe --always --tags')
|
VERSION := $(shell sh -c 'git describe --always --tags')
|
||||||
BRANCH := $(shell sh -c 'git rev-parse --abbrev-ref HEAD')
|
BRANCH := $(shell sh -c 'git rev-parse --abbrev-ref HEAD')
|
||||||
COMMIT := $(shell sh -c 'git rev-parse HEAD')
|
COMMIT := $(shell sh -c 'git rev-parse --short HEAD')
|
||||||
ifdef GOBIN
|
ifdef GOBIN
|
||||||
PATH := $(GOBIN):$(PATH)
|
PATH := $(GOBIN):$(PATH)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue