Skip to content

Commit 245cf89

Browse files
committed
chore: rust git init in test
1 parent 5bd7a3d commit 245cf89

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/run.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ use tempfile::{TempDir, tempdir};
99
fn initialize(repository: &str, branch: &str, pull_requests: &[&str], patches: &[&str]) -> TempDir {
1010
let temp_dir = tempdir().expect("tempdir failed");
1111

12+
Command::new("git")
13+
.args(["init"])
14+
.current_dir(temp_dir.path())
15+
.output()
16+
.expect("git init failed");
17+
1218
copy_dir("tests/fixtures/patches", temp_dir.path().join(".patchy")).expect("copy_dir failed");
1319

1420
std::fs::write(

0 commit comments

Comments
 (0)