Skip to content

Commit c56a7e5

Browse files
committed
Reorder the submodule ops in configure
1 parent 2d903ab commit c56a7e5

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

configure

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -574,19 +574,23 @@ then
574574
msg "git: submodule sync"
575575
"${CFG_GIT}" submodule --quiet sync
576576

577-
# NB: this is just for the sake of getting the submodule SHA1 values
578-
# and status written into the build log.
579-
msg "git: submodule status"
580-
"${CFG_GIT}" submodule status --recursive
581-
582577
msg "git: submodule update"
583-
"${CFG_GIT}" submodule --quiet update --init --recursive
578+
"${CFG_GIT}" submodule --quiet update --init
584579
need_ok "git failed"
585580

586581
msg "git: submodule foreach sync"
587582
"${CFG_GIT}" submodule --quiet foreach --recursive git submodule sync
588583
need_ok "git failed"
589584

585+
msg "git: submodule foreach update"
586+
"${CFG_GIT}" submodule --quiet update --init --recursive
587+
need_ok "git failed"
588+
589+
# NB: this is just for the sake of getting the submodule SHA1 values
590+
# and status written into the build log.
591+
msg "git: submodule status"
592+
"${CFG_GIT}" submodule status --recursive
593+
590594
msg "git: submodule clobber"
591595
"${CFG_GIT}" submodule --quiet foreach --recursive git clean -dxf
592596
need_ok "git failed"

0 commit comments

Comments
 (0)