forked from git/git
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
Description
I install Git for Windows inside an MSYS2 environment because I really like to have the whole suite of tools MSYS2 provides. It's working pretty well.
Git 2.24 seems to get the path to the system-wide gitconfig
wrong. Git 2.23 doesn't. I noticed this when files on disk suddenly kept their LF terminators instead of being converted to CRLF.
According to #29 the 2.23 behavior is correct, though that issue is several years old now. There's been some work recently (#2358) but I don't know if that's the culprit.
$ GIT_EDITOR=echo git config --system --edit 2>/dev/null
C:/tools/msys64/etc/gitconfig
$ pacman -U /var/cache/pacman/pkg/mingw-w64-x86_64-git-2.23.0.1.4db2e5cc9e-1-any.pkg.tar.xz
loading packages...
warning: downgrading package mingw-w64-x86_64-git (2.24.0.2.02af2cc5bf-1 => 2.23.0.1.4db2e5cc9e-1)
resolving dependencies...
looking for conflicting packages...
Package (1) Old Version New Version Net Change
mingw-w64-x86_64-git 2.24.0.2.02af2cc5bf-1 2.23.0.1.4db2e5cc9e-1 -0.21 MiB
Total Installed Size: 32.49 MiB
Net Upgrade Size: -0.21 MiB
:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [############################] 100%
(1/1) checking package integrity [############################] 100%
(1/1) loading package files [############################] 100%
(1/1) checking for file conflicts [############################] 100%
:: Processing package changes...
(1/1) downgrading mingw-w64-x86_64-git [############################] 100%
$ GIT_EDITOR=echo git config --system --edit 2>/dev/null
C:/tools/msys64/mingw64/etc/gitconfig
$