Shortening the git commit used in the version command

Upstream-commit: e566b89a5f13f36fad2e2bb37faf9079e06e051e
Component: engine
This commit is contained in:
Shawn Siefkas
2013-04-01 16:31:33 -05:00
parent 5f6e565b52
commit a9b7db02e4
+1 -1
View File
@@ -10,7 +10,7 @@ ifeq ($(VERBOSE), 1)
GO_OPTIONS += -v
endif
BUILD_OPTIONS = -ldflags "-X main.GIT_COMMIT `git rev-parse HEAD`"
BUILD_OPTIONS = -ldflags "-X main.GIT_COMMIT `git rev-parse --short HEAD`"
SRC_DIR := $(GOPATH)/src