From ab3b0494fe3dd816e3173a074ad2deba9b7df8a4 Mon Sep 17 00:00:00 2001 From: Nick Vyzas Date: Thu, 18 Feb 2021 12:19:19 +0000 Subject: [PATCH] Change git_version parsing to standardize across OS versions --- Makefile | 2 +- lib/Makefile | 2 +- src/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 224731a4d..580d8a07e 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ ifndef GIT_VERSION -GIT_VERSION := $(shell git describe --long) +GIT_VERSION := $(shell git describe --long --abbrev=7) ifndef GIT_VERSION $(error GIT_VERSION is not set) endif diff --git a/lib/Makefile b/lib/Makefile index 4247855c9..a6330e072 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -1,5 +1,5 @@ ifndef GIT_VERSION -GIT_VERSION := $(shell git describe --long) +GIT_VERSION := $(shell git describe --long --abbrev=7) ifndef GIT_VERSION $(error GIT_VERSION is not set) endif diff --git a/src/Makefile b/src/Makefile index 8a93f088c..c953cae2c 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,5 +1,5 @@ ifndef GIT_VERSION -GIT_VERSION := $(shell git describe --long) +GIT_VERSION := $(shell git describe --long --abbrev=7) ifndef GIT_VERSION $(error GIT_VERSION is not set) endif