mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Sync submodule recursively
Submodule may have its own submodules, and the sub-sub-module url may be changed. Thus, if `submodule update --recursive` is done without url sync, sub-sub-module may fail to find appropriate commit. This patch fixes the problem by `git submodule update` locally before recursive sync.
This commit is contained in:
parent
5f672775b2
commit
14d6babd88
1 changed files with 8 additions and 0 deletions
8
configure
vendored
8
configure
vendored
|
@ -368,6 +368,14 @@ then
|
|||
"${CFG_GIT}" submodule status --recursive
|
||||
|
||||
msg "git: submodule update"
|
||||
"${CFG_GIT}" submodule --quiet update --init
|
||||
need_ok "git failed"
|
||||
|
||||
msg "git: submodule foreach 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"
|
||||
"${CFG_GIT}" submodule --quiet update --init --recursive
|
||||
need_ok "git failed"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue