Always pass `--no-optional-lock` to git (#52499)

Release Notes:

- N/A or Added/Fixed/Improved ...
cb97ac48a8Lukas Wirth committed on 3/27/2026, 2:38:53 PM· committed by GitHubparent93e6411
2 files changedLine totals unavailable