diff --git a/codex-rs/git-utils/src/git_command_tests.rs b/codex-rs/git-utils/src/git_command_tests.rs index 5b2c0b2302..38e977de11 100644 --- a/codex-rs/git-utils/src/git_command_tests.rs +++ b/codex-rs/git-utils/src/git_command_tests.rs @@ -2356,10 +2356,10 @@ fn resolver_fails_closed_for_unsupported_windows_device_namespaces() { #[cfg(windows)] #[test] fn resolver_selects_native_git_exe_only() { - assert!(paths_equal( - Path::new(r"C:\Repo\.git"), - Path::new(r"c:\repo\.GIT") - )); + let mixed_case = Path::new(r"C:\Repo\.git"); + let lower_case = Path::new(r"c:\repo\.GIT"); + assert!(crate::git_config::path_is_within(mixed_case, lower_case)); + assert!(crate::git_config::path_is_within(lower_case, mixed_case)); let fixture = tempfile::tempdir().expect("fixture"); let repo = fixture.path().join("repo"); let scripts = fixture.path().join("scripts"); diff --git a/codex-rs/git-utils/src/path_authority.rs b/codex-rs/git-utils/src/path_authority.rs index ab0cd13ccb..b567df0368 100644 --- a/codex-rs/git-utils/src/path_authority.rs +++ b/codex-rs/git-utils/src/path_authority.rs @@ -13,6 +13,8 @@ mod windows_path; use route_walker::RawRouteObservation; use route_walker::RouteObservationSnapshot; +#[cfg(windows)] +use route_walker::invalid_data; use route_walker::observe_route; #[cfg(any(windows, test))] pub(crate) use windows_path::windows_authority_path_is_ambiguous;