]> git.lizzy.rs Git - rust.git/commitdiff
Reorder the submodule ops in configure
authorBrian Anderson <banderson@mozilla.com>
Fri, 5 Oct 2012 18:04:45 +0000 (11:04 -0700)
committerBrian Anderson <banderson@mozilla.com>
Fri, 5 Oct 2012 18:32:28 +0000 (11:32 -0700)
configure

index 60de25809c282f98dc9a85d459735d8957830028..e67ea3af5f382a80ef7305e93aa50a9f566bfc0f 100755 (executable)
--- a/configure
+++ b/configure
@@ -574,19 +574,23 @@ then
     msg "git: submodule sync"
     "${CFG_GIT}" submodule --quiet sync
 
-    # NB: this is just for the sake of getting the submodule SHA1 values
-    # and status written into the build log.
-    msg "git: submodule status"
-    "${CFG_GIT}" submodule status --recursive
-
     msg "git: submodule update"
-    "${CFG_GIT}" submodule --quiet update --init --recursive
+    "${CFG_GIT}" submodule --quiet update --init
     need_ok "git failed"
 
     msg "git: submodule foreach sync"
     "${CFG_GIT}" submodule --quiet foreach --recursive git submodule sync
     need_ok "git failed"
 
+    msg "git: submodule foreach update"
+    "${CFG_GIT}" submodule --quiet update --init --recursive
+    need_ok "git failed"
+
+    # NB: this is just for the sake of getting the submodule SHA1 values
+    # and status written into the build log.
+    msg "git: submodule status"
+    "${CFG_GIT}" submodule status --recursive
+
     msg "git: submodule clobber"
     "${CFG_GIT}" submodule --quiet foreach --recursive git clean -dxf
     need_ok "git failed"