Git fix repo selection (#25996)

Release Notes:

- git: Fixed a bug where staging/unstaging of hunks could use the wrong
git repository if you had many open
2ac952ee6bConrad Irwin committed on 3/4/2025, 4:40:20 AM· committed by GitHubparent495612b
3 files changedLine totals unavailable