windows: Implement shell environment loading for git operations (#39019)

Fixes the "failed to get working directory environment for repository"
error on Windows by implementing proper shell environment variable
capture.

Release Notes:

- Fixed failed to get working directory environment for repository

---------

Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
682cf023caXiaobo Liu committed on 9/27/2025, 3:10:06 PM· committed by GitHubparent72948e1
2 files changedLine totals unavailable