From 387953c1e0665b5a20061d7f6db941c4a97c5952 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Tue, 6 Sep 2022 10:34:57 +0300 Subject: [PATCH] [#1756] make: Fix commit abbrev length in version Make it uniform across all our repos. Signed-off-by: Pavel Karpy --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7c51d64e1..a6fe45552 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ SHELL = bash REPO ?= $(shell go list -m) -VERSION ?= $(shell git describe --tags --dirty --match "v*" --always 2>/dev/null || cat VERSION 2>/dev/null || echo "develop") +VERSION ?= $(shell git describe --tags --dirty --match "v*" --always --abbrev=8 2>/dev/null || cat VERSION 2>/dev/null || echo "develop") HUB_IMAGE ?= nspccdev/neofs HUB_TAG ?= "$(shell echo ${VERSION} | sed 's/^v//')"