diff --git a/Makefile b/Makefile index 224731a4d0..580d8a07e7 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 4247855c94..a6330e0722 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 8a93f088ce..c953cae2cc 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