]> git.lizzy.rs Git - rust.git/commitdiff
`submodule sync` won't work in a leaf submodule.
authorGabriel <g2p.code@gmail.com>
Mon, 22 Oct 2012 20:21:29 +0000 (22:21 +0200)
committerBrian Anderson <banderson@mozilla.com>
Mon, 22 Oct 2012 21:35:31 +0000 (14:35 -0700)
configure

index 9da652762a741cc802e0bca02ade16078f28387a..a8c3ba59e61af93d8a8e5c5b58cc2afcad9640f3 100755 (executable)
--- a/configure
+++ b/configure
@@ -595,7 +595,7 @@ then
     need_ok "git failed"
 
     msg "git: submodule foreach sync"
-    "${CFG_GIT}" submodule --quiet foreach --recursive git submodule sync
+    "${CFG_GIT}" submodule --quiet foreach --recursive 'if test -e .gitmodules; then git submodule sync; fi'
     need_ok "git failed"
 
     msg "git: submodule foreach update"