git: Log some more information when opening a git repository and when `git show` fails (#51495)

Release Notes:

- N/A
bde0834c6cCole Miller committed on 3/13/2026, 2:53:14 PM· committed by GitHubparent697e5be
3 files changedLine totals unavailable