mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-11-30 01:14:09 +00:00
Modern `git` can use `submodule` option `update` instead of `foreach` to achieve approximately similar outcome. To allows call without assuming that all submodules will have default branch as `master`, the preferred approach would be to call `git submodule update --remote --recursive` after registering the correct branch for submodule in `.gitmodules`: ``` git config -f .gitmodules submodule.<path>.branch <branch> ``` For more discussion, see: https://stackoverflow.com/a/33835815 Signed-off-by: Indrajit Raychaudhuri <irc@indrajit.com>
9.0 KiB
9.0 KiB