Shorten git revision printed in the --version output (#770)

This commit is contained in:
Dan Sosedoff
2024-12-20 21:30:37 -08:00
committed by GitHub
parent f5f78eb32e
commit 302aa1d85b

View File

@@ -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'})