diff options
author | Darryl Sokoloski <darryl@sokoloski.ca> | 2022-03-30 21:21:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-31 03:21:51 +0200 |
commit | 46dc8b5bda05f6d7fee62586abd8881284f71a4f (patch) | |
tree | 77e7a0bcfc99c0d84cac3a9a375a901c80c4c81e | |
parent | 4e199abd39e2524d2003b58a752f77344073e9fc (diff) |
[autoconf] Fixed .git submodule detection test. (#1507)
Signed-off-by: Darryl Sokoloski <darryl@sokoloski.ca>
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index bd2488e78..ce31803c7 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` # |