Skip to content

Commit

Permalink
Fix unwrap() in test for repo opening
Browse files Browse the repository at this point in the history
  • Loading branch information
Linus Oleander committed Dec 10, 2023
1 parent 8451133 commit 90cfc0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/patch_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl TestRepo {
fn create_file(&self, name: &str, content: &str) -> Result<GitFile> {
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()))
}
}
Expand Down

0 comments on commit 90cfc0c

Please sign in to comment.