Fix git staging in a subfolder (#37860)

Closes #37418 

Ideal fix for this would be #37855 but that is a large refactor so
implementing this as a workaround.

Release Notes:

- N/A
f397294640localcc committed on 9/9/2025, 4:50:26 PM· committed by GitHubparent8527dcf
1 file changedLine totals unavailable