File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -1662,9 +1662,11 @@ static int git_config_from_blob_ref(config_fn_t fn,
1662
1662
1663
1663
const char * git_etc_gitconfig (void )
1664
1664
{
1665
- static const char * system_wide ;
1666
- if (!system_wide )
1665
+ static char * system_wide ;
1666
+ if (!system_wide ) {
1667
1667
system_wide = system_path (ETC_GITCONFIG );
1668
+ normalize_path_copy (system_wide , system_wide );
1669
+ }
1668
1670
return system_wide ;
1669
1671
}
1670
1672
Original file line number Diff line number Diff line change @@ -424,6 +424,11 @@ ifeq ($(uname_S),Windows)
424
424
NO_POSIX_GOODIES = UnfortunatelyYes
425
425
NATIVE_CRLF = YesPlease
426
426
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
427
432
428
433
CC = compat/vcbuild/scripts/clink.pl
429
434
AR = compat/vcbuild/scripts/lib.pl
@@ -670,6 +675,11 @@ else
670
675
NO_LIBPCRE1_JIT = UnfortunatelyYes
671
676
NO_CURL =
672
677
USE_NED_ALLOCATOR = YesPlease
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
673
683
else
674
684
COMPAT_CFLAGS += -D__USE_MINGW_ANSI_STDIO
675
685
NO_CURL = YesPlease
You can’t perform that action at this time.
0 commit comments