git: Use environment from login shell to search for system git binary, and prefer it to the bundled binary (#39302)
Closes #38571
Release Notes:
- git: Fixed git features not working when git was installed in an
unusual location.
---------
Co-authored-by: Lukas Wirth <me@lukaswirth.dev>
af630be7caCole Miller committed on 10/2/2025, 6:22:10 PM· committed by GitHubparentdbd8efe