From d4eb73e3f0119a9b031d338db3a3388027f49337 Mon Sep 17 00:00:00 2001 From: Darryl Sokoloski Date: Wed, 30 Mar 2022 11:56:39 -0400 Subject: [PATCH] [autoconf] Fixed .git submodule detection test. Signed-off-by: Darryl Sokoloski --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 058bd869cad..244be4ad25d 100644 --- a/configure.ac +++ b/configure.ac @@ -64,7 +64,7 @@ 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 -f ".git" ; then : +if test -d ".git" || test -f ".git" -a -d `cat .git | cut -d' ' -f2`; then : GIT_TAG=`git log -1 --format=%h` GIT_DATE=`git log -1 --format=%cd` #