From 3e9184ff29f0a97ca2e0d7647f54a6ccb897e371 Mon Sep 17 00:00:00 2001 From: A2uria <83493416+A2uria@users.noreply.github.com> Date: Fri, 19 Jul 2024 16:53:36 +0800 Subject: [PATCH] mingw-w64-git: use /proc/cygdrive prefix in bin path when installing 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 <83493416+A2uria@users.noreply.github.com> Signed-off-by: Johannes Schindelin --- mingw-w64-git/git.install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-git/git.install b/mingw-w64-git/git.install index df4e628cb4ead..32a4cb36ca722 100644 --- a/mingw-w64-git/git.install +++ b/mingw-w64-git/git.install @@ -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 () {