Merge pull request #3108 from gitbutlerapp/fix-windows-gbrepo-path-filtering

fix gbrepo path filtering on windows
This commit is contained in:
Josh Junon 2024-03-11 16:25:44 +01:00 committed by GitHub
commit bc626e4e92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,11 +19,10 @@ impl<'i> BranchIterator<'i> {
.into_iter()
.map(|file_path| {
file_path
.display()
.to_string()
.split('/')
.iter()
.next()
.unwrap()
.to_string_lossy()
.to_string()
})
.filter(|file_path| file_path != "selected")