History

[commitgraph] Attempt to fix bash script execution on Windows.

Conor Davis committed 6 years ago

Commit 5e782131 parent 21e45271 file · +2 −1Browse files

Showing the changes to git-commitgraph/tests/commitgraph.rs (1 of 1 file). Show all

Unified · Split

git-commitgraph/tests/commitgraph.rs+2−1
@@ -57,7 +57,8 @@ pub fn check_common(cg: &Graph, expected: &HashMap<String, RefInfo, impl BuildHa · 56 unmodified lines
57 57
58pub fn create_repo(script_path: &str) -> tempfile::TempDir {58pub fn create_repo(script_path: &str) -> tempfile::TempDir {
59 let dir = tempfile::tempdir().expect("failed to create temp dir");59 let dir = tempfile::tempdir().expect("failed to create temp dir");
60 let status = Command::new(fixture_path(script_path))60 let status = Command::new("bash")
61 .arg(fixture_path(script_path))
61 .arg(dir.path())62 .arg(dir.path())
62 .env_remove("GIT_DIR")63 .env_remove("GIT_DIR")
63 .status()64 .status()