mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:47:45 +00:00
Ports: Properly update submodules when checking out Git repositories
This commit is contained in:
parent
e12e833eaa
commit
40808fe1cd
1 changed files with 2 additions and 0 deletions
|
@ -387,6 +387,7 @@ fetch_git() {
|
|||
|
||||
if [ ! -e "${working_copy}/.git" ]; then
|
||||
run_nocd git -C "${backing_copy}" worktree add "${working_copy}" "${revision}"
|
||||
run_nocd git -C "${working_copy}" submodule update --init --recursive
|
||||
fi
|
||||
|
||||
old_revision=""
|
||||
|
@ -399,6 +400,7 @@ fetch_git() {
|
|||
run_nocd git -C "${working_copy}" reset --hard
|
||||
run_nocd git -C "${working_copy}" tag --no-sign -f source "${revision}"
|
||||
run_nocd git -C "${working_copy}" checkout "${revision}"
|
||||
run_nocd git -C "${working_copy}" submodule update --init --recursive
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue