File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -307,13 +307,11 @@ When cloning a `git` dependency,
307
307
Cargo automatically fetches its submodules recursively
308
308
so that all required code is available for the build.
309
309
310
- To skip updates for a specific submodule,
311
- Cargo respects the [ ` submodule.<name>.update ` ] setting in ` .gitmodules ` .
312
- Setting it to ` none ` disables updates for that submodule if it isn't needed for the build.
313
- This is usually set in the repository itself,
314
- so changes require access to the dependency's repo.
310
+ To skip fetching submodules unrelated to the build,
311
+ you can set [ ` submodule.<name>.update = none ` ] [ submodule-update ] in the dependency repo's ` .gitmodules ` .
312
+ This requires write access to the repo and will disable submodule updates more generally.
315
313
316
- [ ` submodule.<name>. update` ] : https://git-scm.com/docs/gitmodules#Documentation/gitmodules.txt-submodulenameupdate
314
+ [ submodule- update ] : https://git-scm.com/docs/gitmodules#Documentation/gitmodules.txt-submodulenameupdate
317
315
318
316
### Accessing private Git repositories
319
317
You can’t perform that action at this time.
0 commit comments