Scheduling infrastructure for absolutely everyone.
Pull latest main in every submodule (#8537)
Hariom Balhara749311be2a87
diff --git a/git-setup.sh b/git-setup.shindex 5f8b7820584..9524ce21af9 100755--- a/git-setup.sh+++ b/git-setup.sh@@ -23,8 +23,12 @@ for module in "$@"; dogit submodule add --force $project "apps/$module"# Set the default branch to maingit config -f .gitmodules --add "submodule.apps/$module.branch" main- # Adding the subdmoule ignores the `.gitignore` so a reset is needed- git reset++ # Update to the latest from main in that submodule+ cd apps/$module && git pull origin main && cd ../..++ # We forcefully added the subdmoule which was in .gitignore, so unstage it.+ git restore --staged apps/$moduleelse# If the module is the API, display a link to request accessif [ "$module" = "api" ]; then@@ -35,3 +39,4 @@ for module in "$@"; dofifidone+git restore --staged .gitmodules