Browse code

Shortening the git commit used in the version command

Shawn Siefkas authored on 2013/04/02 06:31:33
Showing 1 changed files
... ...
@@ -10,7 +10,7 @@ ifeq ($(VERBOSE), 1)
10 10
 GO_OPTIONS += -v
11 11
 endif
12 12
 
13
-BUILD_OPTIONS = -ldflags "-X main.GIT_COMMIT `git rev-parse HEAD`"
13
+BUILD_OPTIONS = -ldflags "-X main.GIT_COMMIT `git rev-parse --short HEAD`"
14 14
 
15 15
 SRC_DIR := $(GOPATH)/src
16 16