mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
Ports: Properly update submodules when checking out Git repositories
This commit is contained in:
parent
e12e833eaa
commit
40808fe1cd
Notes:
sideshowbarker
2024-07-17 02:08:15 +09:00
Author: https://github.com/timschumi Commit: https://github.com/SerenityOS/serenity/commit/40808fe1cd Pull-request: https://github.com/SerenityOS/serenity/pull/21177 Reviewed-by: https://github.com/gmta ✅
@ -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…
Reference in New Issue
Block a user