git: Fix race condition loading project diff (#25992)

Conrad Irwin created

Release Notes:

- git: Fixed a race condition where some files would be missing from
project diff

Change summary

0 files changed

Detailed changes