Skip to content

Commit

Permalink
[autoconf] Fixed .git submodule detection test. (#1507)
Browse files Browse the repository at this point in the history
Signed-off-by: Darryl Sokoloski <[email protected]>
  • Loading branch information
dsokoloski authored Mar 31, 2022
1 parent 4e199ab commit 46dc8b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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`
#
Expand Down

0 comments on commit 46dc8b5

Please sign in to comment.