Git: reload index before reading it (#27386)

This is one of the causes for race conditions, but isn't a specific bug fix by itself.

Release Notes:

- N/A

Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
11552cc0bdJoão Marcos committed on 3/24/2025, 7:03:57 PM· committed by GitHubparent6993699
1 file changedLine totals unavailable