Fix git branches in non-active repository (#26148)

Release Notes:

- Git Beta: Fixed a bug where the branch selector would only show for
the first repository opened.

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
Co-authored-by: Richard Feldman <oss@rtfeldman.com>
9d54e63a11Mikayla Maki committed on 3/5/2025, 9:16:46 PM· committed by GitHubparent2a919ad
12 files changedLine totals unavailable