Fix git hunk staging on windows (#35755)

We were failing to flush the Git process's `stdin` before dropping it.

Release Notes:

- N/A
c595a7576dMax Brunsfeld committed on 8/7/2025, 12:30:36 AM· committed by GitHubparent8e290b4
1 file changedLine totals unavailable