diff --git a/gitbutler-app/src/reader.rs b/gitbutler-app/src/reader.rs index a1daccc25..123acaaab 100644 --- a/gitbutler-app/src/reader.rs +++ b/gitbutler-app/src/reader.rs @@ -125,9 +125,8 @@ impl FilesystemReader { fn list_files>(&self, path: P) -> Result> { let path = path.as_ref(); - self.0.batch(|root| { - fs::list_files(root.join(path), &[path::Path::new(".git").to_path_buf()]) - })? + self.0 + .batch(|root| fs::list_files(root.join(path).as_path(), &[path::Path::new(".git")]))? } }