Skip to content

Commit

Permalink
version: use short-SHA (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
jzelinskie committed May 9, 2016
1 parent 5a77302 commit 4715b99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -49,7 +49,7 @@ RM = rm
include platform.mk

# Additional tags and LDFLAGS to use during the compilation.
GITHASH = $(shell $(GIT) rev-parse HEAD)
GITHASH = $(shell $(GIT) rev-parse --short HEAD)
BUILDTIME = $(shell $(DATE) -u +%Y-%m-%d_%I:%M:%S%p)
GO_LDFLAGS += -w -X "main.githash=$(GITHASH)" -X "main.buildtime=$(BUILDTIME)"
GO_GCFLAGS +=
Expand Down

0 comments on commit 4715b99

Please sign in to comment.