diff --git a/src/git.rs b/src/git.rs index 477aa43..e2f4c63 100644 --- a/src/git.rs +++ b/src/git.rs @@ -164,10 +164,15 @@ impl VersionControl for Repo { .collect::>(); let mut files = files.into_iter().collect::>(); files.sort(); - files + Ok(files .into_iter() - .map(AbsPath::try_from) - .collect::>() + .filter_map(|p| if let Ok(abs_path) = AbsPath::try_from(&p) { + Some(abs_path) + } else { + debug!("Failed to convert path to AbsPath: {}", p); + None + }) + .collect::>()) } }