-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #5914 - alexcrichton:system-git, r=dwijnand
Add a configuration option to fetch with git-the-CLI Currently Cargo always uses `libgit2` to perform all fetches of git repositories, but sometimes this is not sufficient. The `libgit2` library doesn't support all authentication schemes that `git` does and it isn't always quite at feature parity with `git` itself, especially in terms of network configuration. This commit adds a configuration option to Cargo for fetching git repositories with the `git` CLI tool rather than the internal `libgit2`. While this exposes us to changes over time in the `git` CLI it's hopefully a very targeted use case that doesn't change much. The internal `libgit2` library should be sufficient for all other forms of git repository management. (and using `git` for only fetches shouldn't slow us down much) The new configuration option in `.cargo/config` is: [net] git-fetch-with-cli = true which can also be specified with `CARGO_NET_GIT_FETCH_WITH_CLI=true` via an environment variable. Closes #5903
- Loading branch information
Showing
3 changed files
with
84 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters