Skip to content

Commit 48007c1

Browse files
committed
Prevent Git4Win from prepending to PATH
1 parent 80c0919 commit 48007c1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ci/scripts/install-mingw.sh

+5
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ if isWindows && isKnownToBeMingwBuild; then
3232
;;
3333
esac
3434

35+
# Stop Git4Win from prepending /msys64/bin to PATH.
36+
msys2Path="c:/msys64"
37+
mkdir -p "${msys2Path}/home/${USERNAME}"
38+
ciCommandAddPath "${msys2Path}/usr/bin"
39+
3540
mingw_dir="mingw${bits}"
3641

3742
curl -o mingw.7z "${MIRRORS_BASE}/${mingw_archive}"

0 commit comments

Comments
 (0)