Only try to check the submodule out if we have a git checkout.
authorAlan McGovern <alan.mcgovern@gmail.com>
Thu, 29 Mar 2012 02:00:38 +0000 (03:00 +0100)
committerAlan McGovern <alan.mcgovern@gmail.com>
Thu, 29 Mar 2012 02:00:38 +0000 (03:00 +0100)
We also should execute this every time so that if the submodule has
been updated on the remote, the users checkout reflects that change
too.

configure.in

index 4e879ae5669168d4368a159b3320c8913b90f6eb..4356ec3c5f3d24e1b4bd8a002a137163eaa30bd7 100644 (file)
@@ -3147,9 +3147,9 @@ msvc/Makefile
 po/Makefile
 ])
 
-if ! test -f external/aspnetwebstack/README.md; then
-       git submodule init
-       git submodule update
+# Update all submodules recursively to ensure everything is checked out
+if test -d .git; then
+       git submodule update --init --recursive
 fi
 
 if test x$host_win32 = xyes; then