We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 903cb2d commit a492a5dCopy full SHA for a492a5d
crates/gitbutler-project/src/project.rs
@@ -126,10 +126,12 @@ impl Project {
126
// nexted insided of another via a gitignored folder.
127
// We want to match on the longest project path.
128
projects.sort_by(|a, b| {
129
- b.path
130
- .to_string_lossy()
+ a.path
+ .as_os_str()
131
.len()
132
- .cmp(&a.path.to_string_lossy().len())
+ .cmp(&b.path.as_os_str().len())
133
+ // longest first
134
+ .reverse()
135
});
136
let resolved_path = if path.is_relative() {
137
path.canonicalize().context("Failed to canonicalize path")?
0 commit comments