Skip to content

Commit d6d4eb5

Browse files
dschoGit for Windows Build Agent
authored andcommitted
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 016facb + 8afdb3d commit d6d4eb5

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
@@ -425,6 +425,11 @@ ifeq ($(uname_S),Windows)
425425
NATIVE_CRLF = YesPlease
426426
INTERNAL_QSORT = YesPlease
427427
DEFAULT_HELP_FORMAT = html
428+
ifeq (/mingw64,$(subst 32,64,$(prefix)))
429+
# Move system config into top-level /etc/
430+
ETC_GITCONFIG = ../etc/gitconfig
431+
ETC_GITATTRIBUTES = ../etc/gitattributes
432+
endif
428433

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

0 commit comments

Comments
 (0)