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,
307307Cargo automatically fetches its submodules recursively
308308so that all required code is available for the build.
309309
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.
315313
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
317315
318316### Accessing private Git repositories
319317
You can’t perform that action at this time.
0 commit comments