Skip to content

Commit a7d0539

Browse files
committed
Fix git http.proxy config setting.
1 parent de42302 commit a7d0539

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cargo/ops/registry.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -682,8 +682,8 @@ fn http_proxy(config: &Config) -> CargoResult<Option<String>> {
682682
return Ok(Some(s.clone()));
683683
}
684684
if let Ok(cfg) = git2::Config::open_default() {
685-
if let Ok(s) = cfg.get_str("http.proxy") {
686-
return Ok(Some(s.to_string()));
685+
if let Ok(s) = cfg.get_string("http.proxy") {
686+
return Ok(Some(s));
687687
}
688688
}
689689
Ok(None)

0 commit comments

Comments
 (0)