From 99e521eaf8b79ef38764edc204ae588f15ea2291 Mon Sep 17 00:00:00 2001 From: Toni Date: Fri, 5 Apr 2024 11:04:22 +0200 Subject: Limit git commit hash to 7 characters. (#2368) * ensure consistency across all platforms Signed-off-by: Toni Uhlig --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 3e42f6a60..15f1f9b90 100644 --- a/configure.ac +++ b/configure.ac @@ -151,8 +151,8 @@ AC_DEFINE_UNQUOTED(NDPI_PATCH_LEVEL, "${NDPI_PATCH}", [nDPI patch level]) # .git as directory in a cloned repo # .git as file in submodule based integration if test -d ".git" || test -r ".git"; then - GIT_TAG=`git log -1 --format=%h` - GIT_DATE=`git log -1 --format=%cd` + GIT_TAG=`git log -1 --abbrev=7 --format=%h` + GIT_DATE=`git log -1 --abbrev=7 --format=%cd` # # On CentOS 6 `git rev-list HEAD --count` does not work # -- cgit v1.2.3