瀏覽代碼

Shortening the git commit used in the version command

Shawn Siefkas 12 年之前
父節點
當前提交
e566b89a5f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Makefile

+ 1 - 1
Makefile

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