mingw(arm64): do move the `/etc/git*` location

In fb5e3378f8 (mingw: move Git for Windows' system config where users expect it, 2021-06-22), I moved the location of Git for Windows' system config and system Git attributes file to the top-level `/etc/` directory (because it is a much more obvious location than, say, `/mingw64/etc/`). The patch relied on a very specific scenario that the newly-supported Windows/ARM64 builds of `git.exe` fails to fall into. So let's broaden the condition a bit, so that Windows/ARM64 builds also use that location (instead of the even more obscure `/clangarm64/etc/` directory). This fixes https://github.com/git-for-windows/git/issues/5431. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Apr 23, 2025 at 08:01 UTC 619950d421f5d99edcb012ce59856bbaac07083d
1 file changed +2 -2
config.mak.uname
+2 -2
@@ -489,7 +489,7 @@ ifeq ($(uname_S),Windows)
489 NO_POSIX_GOODIES = UnfortunatelyYes
490 NATIVE_CRLF = YesPlease
491 DEFAULT_HELP_FORMAT = html
492 -ifeq (/mingw64,$(subst 32,64,$(prefix)))
492 +ifeq (/mingw64,$(subst 32,64,$(subst clangarm,mingw,$(prefix))))
493 # Move system config into top-level /etc/
494 ETC_GITCONFIG = ../etc/gitconfig
495 ETC_GITATTRIBUTES = ../etc/gitattributes
@@ -749,7 +749,7 @@ ifeq ($(uname_S),MINGW)
749 ifneq (CLANGARM64,$(MSYSTEM))
750 USE_NED_ALLOCATOR = YesPlease
751 endif
752 - ifeq (/mingw64,$(subst 32,64,$(prefix)))
752 + ifeq (/mingw64,$(subst 32,64,$(subst clangarm,mingw,$(prefix))))
753 # Move system config into top-level /etc/
754 ETC_GITCONFIG = ../etc/gitconfig
755 ETC_GITATTRIBUTES = ../etc/gitattributes