Store repo content path as absolute

Julia and Mikayla Maki created

Co-Authored-By: Mikayla Maki <mikayla@zed.dev>

Change summary

crates/project/src/worktree.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

crates/project/src/worktree.rs 🔗

@@ -1561,7 +1561,7 @@ impl LocalSnapshot {
 
         if parent_path.file_name() == Some(&DOT_GIT) {
             let abs_path = self.abs_path.join(&parent_path);
-            let content_path: Arc<Path> = parent_path.parent().unwrap().into();
+            let content_path: Arc<Path> = abs_path.parent().unwrap().into();
             if let Err(ix) = self
                 .git_repositories
                 .binary_search_by_key(&&content_path, |repo| &repo.content_path)