Fix ancestor git repositories going missing (#28436)

Closes #ISSUE

Release Notes:

- Fixed a bug that caused Zed to sometimes not discover git repositories
above a worktree root.
7bf6cd4ccfCole Miller committed on 4/9/2025, 4:44:29 PM· committed by GitHubparentc7963c8
2 files changedLine totals unavailable