Explorar el Código

Shortening the git commit used in the version command

Shawn Siefkas hace 12 años
padre
commit
e566b89a5f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Makefile

+ 1 - 1
Makefile

@@ -10,7 +10,7 @@ ifeq ($(VERBOSE), 1)
 GO_OPTIONS += -v
 GO_OPTIONS += -v
 endif
 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
 SRC_DIR := $(GOPATH)/src