Add some logging to debug missing parent git repositories (#25943)

We've had some issues reported with git repositories not getting
detected when they're a strict parent of the worktree root. Add a bit
more logging to understand what's going on here.

Release Notes:

- N/A
b774a4b8d1Cole Miller committed on 3/3/2025, 6:39:04 PM· committed by GitHubparent16ab870
1 file changedLine totals unavailable