-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Update .gitmodules
to use shallow submodule clones
#113740
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
d975419
to
b7a590a
Compare
This change makes submodule checkouts shallow by default. This significantly reduces the time needed to do a recursive checkout when `--shallow-submodules` is not specified, such as when `x` is not being used.
b7a590a
to
ffad01a
Compare
I seem to recall that shallow submodules break if the commit we're pinned to is "too far" from the tip that's being pulled - but maybe I am misremembering. I'll try to find evidence either way before merging. |
There are always issues moving around history with shallow clones, like moving around branches when it can't find a common commit. And The same would be true for submodules, but I don't think that many people need to move around more than the single commit of interest (especially since I believe x already does a shallow checkout anyway) |
OK, yeah, it looks like we already do this in bootstrap, so I think we can move forward. @bors r+ |
…=Mark-Simulacrum Update `.gitmodules` to use shallow submodule clones This change makes submodule checkouts shallow by default. This significantly reduces the time needed to do a recursive checkout when `--shallow-submodules` is not specified, such as when `x` is not being used.
…=Mark-Simulacrum Update `.gitmodules` to use shallow submodule clones This change makes submodule checkouts shallow by default. This significantly reduces the time needed to do a recursive checkout when `--shallow-submodules` is not specified, such as when `x` is not being used.
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#112858 (Update Android system definitions and add riscv-linux-android as tier 3 target) - rust-lang#113717 (remove repetitive words) - rust-lang#113725 (Move MinGW linker dist option to proper section) - rust-lang#113740 (Update `.gitmodules` to use shallow submodule clones) - rust-lang#113889 (Fix ice tests when librustc-driver is linked dynamically) - rust-lang#113906 (etc: add `RUSTC_BOOTSTRAP` to rust-analyzer config) - rust-lang#113920 (fix(resolve): report unresolved imports firstly) - rust-lang#114111 (Improve test case for experimental API remove_matches) r? `@ghost` `@rustbot` modify labels: rollup
This change makes submodule checkouts shallow by default. This significantly reduces the time needed to do a recursive checkout when
--shallow-submodules
is not specified, such as whenx
is not being used.