Skip to content

Commit

Permalink
Fix git http.proxy config setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Dec 16, 2020
1 parent de42302 commit a7d0539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cargo/ops/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,8 @@ fn http_proxy(config: &Config) -> CargoResult<Option<String>> {
return Ok(Some(s.clone()));
}
if let Ok(cfg) = git2::Config::open_default() {
if let Ok(s) = cfg.get_str("http.proxy") {
return Ok(Some(s.to_string()));
if let Ok(s) = cfg.get_string("http.proxy") {
return Ok(Some(s));
}
}
Ok(None)
Expand Down

0 comments on commit a7d0539

Please sign in to comment.