[autoconf] Fixed .git submodule detection test. (#1507)
Signed-off-by: Darryl Sokoloski <darryl@sokoloski.ca>
This commit is contained in:
+1
-1
@@ -64,7 +64,7 @@ AC_DEFINE_UNQUOTED(NDPI_PATCH_LEVEL, "${NDPI_PATCH}", [nDPI patch level])
|
|||||||
|
|
||||||
# .git as directory in a cloned repo
|
# .git as directory in a cloned repo
|
||||||
# .git as file in submodule based integration
|
# .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_TAG=`git log -1 --format=%h`
|
||||||
GIT_DATE=`git log -1 --format=%cd`
|
GIT_DATE=`git log -1 --format=%cd`
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user