From dcdb8eae4b5c7897bef752a66bc17a8ee662da97 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 24 Mar 2025 16:16:04 +0800 Subject: [PATCH] fix: `filter::Pipeline::convert_to_git()` now also works on Windows under all circumstances. --- gix/src/filter.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gix/src/filter.rs b/gix/src/filter.rs index 4665044414d..bc0cb8c5768 100644 --- a/gix/src/filter.rs +++ b/gix/src/filter.rs @@ -172,7 +172,9 @@ impl Pipeline<'_> { entry.matching_attributes(attrs); }, &mut |buf| -> Result<_, gix_object::find::Error> { - let entry = match index.entry_by_path(gix_path::into_bstr(rela_path).as_ref()) { + let entry = match index + .entry_by_path(gix_path::to_unix_separators_on_windows(gix_path::into_bstr(rela_path)).as_ref()) + { None => return Ok(None), Some(entry) => entry, };