fix(git): preserve patch parsing compatibility

This commit is contained in:
Chris Bookholt
2026-07-03 20:32:11 -07:00
parent 409f1f78e7
commit f6adc9fbcc
3 changed files with 90 additions and 13 deletions
+2 -2
View File
@@ -75,8 +75,8 @@ fn effective_paths(diff: &str, revert: bool) -> io::Result<Vec<String>> {
}
fn best_effort_paths(diff: &str) -> Vec<String> {
let repo = init_repo();
extract_paths_from_patch_from_cwd(diff, repo.path())
let cwd = tempfile::tempdir().expect("non-repository cwd");
extract_paths_from_patch_from_cwd(diff, cwd.path())
}
#[test]