mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2025-01-08 19:06:38 +03:00
do not return statuses for non utf file names
This commit is contained in:
parent
175aad9298
commit
617ae58013
@ -93,9 +93,10 @@ impl<'repository> Repository<'repository> {
|
||||
|
||||
let files = statuses
|
||||
.iter()
|
||||
.map(|entry| {
|
||||
let path = entry.path().unwrap();
|
||||
(path.to_string(), FileStatusType::from(entry.status()))
|
||||
.filter_map(|entry| {
|
||||
entry
|
||||
.path()
|
||||
.map(|path| (path.to_string(), FileStatusType::from(entry.status())))
|
||||
})
|
||||
.collect();
|
||||
|
||||
@ -117,9 +118,10 @@ impl<'repository> Repository<'repository> {
|
||||
|
||||
let files = statuses
|
||||
.iter()
|
||||
.map(|entry| {
|
||||
let path = entry.path().unwrap();
|
||||
(path.to_string(), FileStatusType::from(entry.status()))
|
||||
.filter_map(|entry| {
|
||||
entry
|
||||
.path()
|
||||
.map(|path| (path.to_string(), FileStatusType::from(entry.status())))
|
||||
})
|
||||
.collect();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user