Skip to content

Commit c35c900

Browse files
committed
Make git auth script Windows/bash compatible
1 parent 1065102 commit c35c900

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/testsuite/build_auth.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,11 @@ fn http_auth_offered() {
9191
let config = paths::home().join(".gitconfig");
9292
let mut config = git2::Config::open(&config).unwrap();
9393
config
94-
.set_str("credential.helper", &script.display().to_string())
94+
.set_str(
95+
"credential.helper",
96+
// This is a bash script so replace `\` with `/` for Windows
97+
&script.display().to_string().replace("\\", "/"),
98+
)
9599
.unwrap();
96100

97101
let p = project()

0 commit comments

Comments
 (0)