diff --git a/tests/patch_test.rs b/tests/patch_test.rs index ea02c0c..026e1f0 100644 --- a/tests/patch_test.rs +++ b/tests/patch_test.rs @@ -29,7 +29,7 @@ impl TestRepo { fn create_file(&self, name: &str, content: &str) -> Result { let file_path = self.repo_path.path().join(name); std::fs::write(&file_path, content)?; - let repo = git2::Repository::open(self.repo_path.path())?; + let repo = git2::Repository::open(self.repo.path()).unwrap(); Ok(GitFile::new(repo, file_path, self.repo_path.path().to_path_buf())) } }