Fix spurious addition hunks in files with no git repo (#24288)

Release Notes:

- N/A
ffe503d77cCole Miller committed on 2/5/2025, 6:41:08 PM· committed by GitHubparent5a25751
2 files changedLine totals unavailable