aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2024-04-04 23:10:29 +0200
committerToni Uhlig <matzeton@googlemail.com>2024-04-04 23:10:29 +0200
commitf10e4ab92637965c6fed84f25395f37ab991ae28 (patch)
treebc1e4a76c8ae13d3c746f88439cceda140526c10
parent09bb383437c11ef55e926ed15cdf986c0d426827 (diff)
Limit git commit hash to 7 characters.fix/git-format-hash-abbr-length
* ensure consistency across all platforms Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rw-r--r--configure.ac4
1 files 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
#