Skip to content

Commit 7326da5

Browse files
committed
update-via-pacman: ensure that git.exe is in the PATH
The post-install script of `git-extra` (which we source manually) assumes that the native `git.exe` is in the `PATH`. Let's make it so. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent dba9744 commit 7326da5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

update-via-pacman.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ function die {
2323
Set-Location $PSScriptRoot
2424
if (!$?) { die "Could not switch directory to $PSScriptRoot" }
2525

26-
$env:PATH = "$(Get-Location)\usr\bin;" + $env:PATH
26+
$env:PATH = "$(Get-Location)\mingw64\bin;$(Get-Location)\usr\bin;" + $env:PATH
2727

2828
# Set to MSYS mode
29-
$env:MSYSTEM = "MSYS"
29+
$env:MSYSTEM = "MINGW64"
3030
$env:MSYS2_PATH_TYPE = "minimal"
3131

3232
# Create /var/log/ so that pacman.log is written

0 commit comments

Comments
 (0)