diff --git a/Makefile b/Makefile index d7cc8daca..b043c050f 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ endif build: $(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)'" install: