git-utils: fix Windows authority build

This commit is contained in:
Chris Bookholt
2026-07-01 21:30:49 -07:00
parent bcf026cbca
commit daca14580c
2 changed files with 6 additions and 4 deletions
+4 -4
View File
@@ -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");
+2
View File
@@ -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;