]> git.ipfire.org Git - thirdparty/git.git/commit
cmake(windows): set correct path to the system Git config
authorDennis Ameling <dennis@dennisameling.com>
Tue, 22 Jun 2021 10:46:47 +0000 (10:46 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 Jun 2021 03:11:50 +0000 (20:11 -0700)
commit50101b93ca69babb389e6bdefd733ef014338d29
treeeeac3d48e941dc80a9028856fd243c8222e819a3
parentfb5e3378f8427ef970544848974db2dc90828a7a
cmake(windows): set correct path to the system Git config

Currently, when Git for Windows is built with CMake, the system Git config is
expected in a different location than when building via `make`: the former
expects it to be in `<runtime-prefix>/mingw64/etc/gitconfig`, the latter in
`<runtime-prefix>/etc/gitconfig`.

Because of this, things like `git clone` do not work correctly (because cURL is
no longer able to find its certificate bundle that it needs to validate HTTPS
certificates). See the full bug report and discussion here:
https://github.com/git-for-windows/git/issues/3071#issuecomment-789261386.

This commit aligns the CMake-based build by mimicking what is already done in
`config.mak.uname`.

This closes https://github.com/git-for-windows/git/issues/3071.

Signed-off-by: Dennis Ameling <dennis@dennisameling.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/buildsystems/CMakeLists.txt