Skip to content

Commit 8f12ab9

Browse files
committed
Make sure we can find a project even if the CWD is inside a subdirectory
1 parent 0d0f06e commit 8f12ab9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/gitbutler-project/src/project.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl Project {
131131
.find(|p| {
132132
// Canonicalize project path for comparison
133133
match p.path.canonicalize() {
134-
Ok(proj_canon) => proj_canon == resolved_path,
134+
Ok(proj_canon) => resolved_path.starts_with(proj_canon),
135135
Err(_) => false,
136136
}
137137
})

0 commit comments

Comments
 (0)