Always run 'git submodule update' when git is in use
[idzebra-moved-to-github.git] / buildconf.sh
index 8ed1491..f9e6516 100755 (executable)
@@ -6,10 +6,12 @@ autoconf=autoconf
 libtoolize=libtoolize
 
 test -d config || mkdir config
-if test -d m4/.git -a -d doc/common/.git; then
-    :
-else
-    git submodule init
+if test .git; then
+    if test -d m4/.git -a -d doc/common/.git; then
+        :
+    else
+        git submodule init
+    fi
     git submodule update
 fi