Skip to content

Commit

Permalink
mingw-w64-git: use /proc/cygdrive prefix in bin path when installing …
Browse files Browse the repository at this point in the history
…redirectors

If cygdrive is mounted to something other than `/` (e.g. `/mnt/`),
upgrading `mingw-w64-git` using pacman will result in redirectors (e.g.
`/bin/git.exe`) being installed to an incorrect path. (e.g. `C:/Program
Files/Git/bin` to `C:/Program Files/Git/C/Program Files/Git/bin`).

Signed-off-by: A2uria <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
A2uria authored and dscho committed Jul 19, 2024
1 parent 22fcdb3 commit 3e9184f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mingw-w64-git/git.install
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ mingw_prefix_path () {
}

bin_path () {
echo "$(cygpath -am / | sed 's/^\([A-Z]\):/\/\1/')/bin"
echo "$(cygpath -am / | sed 's/^\([A-Z]\):/\/proc\/cygdrive\/\1/')/bin"
}

copy_files () {
Expand Down

0 comments on commit 3e9184f

Please sign in to comment.