Shortening the git commit used in the version command

This commit is contained in:
Shawn Siefkas 2013-04-01 16:31:33 -05:00
Родитель 37a78902db
Коммит e566b89a5f
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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