Fix bug in repo detection

This commit is contained in:
Mikayla Maki committed 2023-05-08 14:33:58 -07:00
1 parent 8403c589d5
commit bb5f30a58b
1 file changed
+1 -1
+1 -1
View File
@@ -1492,7 +1492,7 @@ impl LocalSnapshot {
let mut current_candidate = None;
for (work_directory, repo) in (&self.repository_entries).iter() {
if work_directory.contains(path) {
if work_directory.0.as_os_str().len() > max_len {
if work_directory.0.as_os_str().len() >= max_len {
current_candidate = Some(repo);
max_len = work_directory.0.as_os_str().len();
} else {