From eb0cd674c1dee46c20c1390782c28682ac6a43c9 Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Thu, 17 Oct 2019 09:46:16 +1100 Subject: [PATCH] Use short git hash to be consistent with github --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: