Skip to content

Commit a81e940

Browse files
committed
Merge pull request #2358 from dscho/reconcile-system-config-and-programdata-config
Make `git config --system` work like you think it should on Windows
2 parents 5fa0eb5 + 82da671 commit a81e940

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

config.mak.uname

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,11 @@ ifeq ($(uname_S),Windows)
424424
NO_POSIX_GOODIES = UnfortunatelyYes
425425
NATIVE_CRLF = YesPlease
426426
DEFAULT_HELP_FORMAT = html
427+
ifeq (/mingw64,$(subst 32,64,$(prefix)))
428+
# Move system config into top-level /etc/
429+
ETC_GITCONFIG = ../etc/gitconfig
430+
ETC_GITATTRIBUTES = ../etc/gitattributes
431+
endif
427432

428433
CC = compat/vcbuild/scripts/clink.pl
429434
AR = compat/vcbuild/scripts/lib.pl
@@ -670,6 +675,11 @@ else
670675
NO_CURL =
671676
USE_NED_ALLOCATOR = YesPlease
672677
NO_PYTHON =
678+
ifeq (/mingw64,$(subst 32,64,$(prefix)))
679+
# Move system config into top-level /etc/
680+
ETC_GITCONFIG = ../etc/gitconfig
681+
ETC_GITATTRIBUTES = ../etc/gitattributes
682+
endif
673683
else
674684
COMPAT_CFLAGS += -D__USE_MINGW_ANSI_STDIO
675685
NO_CURL = YesPlease

0 commit comments

Comments
 (0)