mirror of
https://github.com/openai/codex.git
synced 2026-11-23 23:10:47 +00:00
git-utils: harden reverse patch staging
This commit is contained in:
@@ -134,10 +134,7 @@ fn effective_paths_cover_supported_patch_headers() {
|
||||
|
||||
let nul_rename_paths = parse_numstat_paths(b"0\t0\t\0old name.txt\0new name.txt\0")
|
||||
.expect("parse NUL-delimited rename paths");
|
||||
assert_eq!(
|
||||
nul_rename_paths,
|
||||
vec!["old name.txt".to_string(), "new name.txt".to_string()]
|
||||
);
|
||||
assert_eq!(nul_rename_paths, vec!["new name.txt".to_string()]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user