From 302aa1d85b5dcf80d71fef61ab2c613651fec262 Mon Sep 17 00:00:00 2001 From: Dan Sosedoff Date: Fri, 20 Dec 2024 21:30:37 -0800 Subject: [PATCH] Shorten git revision printed in the --version output (#770) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2fb38ab..28bad70 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ PKG = github.com/sosedoff/pgweb -GIT_COMMIT ?= $(shell git rev-parse HEAD) +GIT_COMMIT ?= $(shell git rev-parse --short=8 HEAD) BUILD_TIME ?= $(shell date -u +"%Y-%m-%dT%H:%M:%SZ" | tr -d '\n') GO_VERSION ?= $(shell go version | awk {'print $$3'})