Merge pull request #3111 from gitbutlerapp/trivial-path-consistency-fix

use simpler path representation at call site
This commit is contained in:
Josh Junon 2024-03-11 18:41:06 +01:00 committed by GitHub
commit da97b0e31f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -125,9 +125,8 @@ impl FilesystemReader {
fn list_files<P: AsRef<std::path::Path>>(&self, path: P) -> Result<Vec<path::PathBuf>> {
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")]))?
}
}