Use short git hash to be consistent with github

This commit is contained in:
WithoutPants 2019-10-17 09:46:16 +11:00
parent 21a9baabb9
commit eb0cd674c1
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ endif
build: build:
$(eval DATE := $(shell go run scripts/getDate.go)) $(eval DATE := $(shell go run scripts/getDate.go))
$(eval GITHASH := $(shell git rev-parse HEAD)) $(eval GITHASH := $(shell git rev-parse --short HEAD))
$(SET) CGO_ENABLED=1 $(SEPARATOR) go build -mod=vendor -v -ldflags "-X 'github.com/stashapp/stash/pkg/api.buildstamp=$(DATE)' -X 'github.com/stashapp/stash/pkg/api.githash=$(GITHASH)'" $(SET) CGO_ENABLED=1 $(SEPARATOR) go build -mod=vendor -v -ldflags "-X 'github.com/stashapp/stash/pkg/api.buildstamp=$(DATE)' -X 'github.com/stashapp/stash/pkg/api.githash=$(GITHASH)'"
install: install: