mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
9eced61d2a
This allows git to work on systems without /etc/ssl/certs/ca-certificates.crt, such as OS X, instead of failing with "error setting certificate verify locations".
12 lines
426 B
Diff
12 lines
426 B
Diff
diff -ru git-2.7.4-orig/http.c git-2.7.4/http.c
|
|
--- git-2.7.4-orig/http.c 2016-03-17 21:47:59.000000000 +0100
|
|
+++ git-2.7.4/http.c 2016-04-12 11:38:33.187070848 +0200
|
|
@@ -544,6 +544,7 @@
|
|
#if LIBCURL_VERSION_NUM >= 0x070908
|
|
set_from_env(&ssl_capath, "GIT_SSL_CAPATH");
|
|
#endif
|
|
+ set_from_env(&ssl_cainfo, "SSL_CERT_FILE");
|
|
set_from_env(&ssl_cainfo, "GIT_SSL_CAINFO");
|
|
|
|
set_from_env(&user_agent, "GIT_HTTP_USER_AGENT");
|