Skip to content

Commit

Permalink
Make git auth script Windows/bash compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Jun 7, 2019
1 parent 1065102 commit c35c900
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/testsuite/build_auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ fn http_auth_offered() {
let config = paths::home().join(".gitconfig");
let mut config = git2::Config::open(&config).unwrap();
config
.set_str("credential.helper", &script.display().to_string())
.set_str(
"credential.helper",
// This is a bash script so replace `\` with `/` for Windows
&script.display().to_string().replace("\\", "/"),
)
.unwrap();

let p = project()
Expand Down

0 comments on commit c35c900

Please sign in to comment.