Use short commit in Makefile build

This commit is contained in:
Cameron Sparr 2016-11-03 16:37:52 +00:00
parent 34182d9c9f
commit fe6162b2a1
1 changed files with 1 additions and 1 deletions

View File

@ -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