3
0
Fork 0
forked from mirrors/nixpkgs

Revert "add OPENSSL_X509_CERT_FILE to the git command environment"

This reverts commit 88b5578a57 because of the
following issues:

 1) If $OPENSSL_X509_CERT_FILE is set in the current shell environment, then
    its value will overwrite any settings the user may have configured in
    http.sslCAInfo via git-config(1). If you are unaware of the wrapper, then
    this behavior is totally unexpected as $OPENSSL_X509_CERT_FILE is not
    supposed to have an effect on Git.

 2) The patch makes it impossible for Git users to use the $GIT_SSL_CAINFO
    environment variable as documented in git-config(1), because anything set
    there will be overwritten with the value of $OPENSSL_X509_CERT_FILE (which
    might be empty).

 3) The patch breaks other builds of packages that depend on Git, i.e.
    <http://hydra.nixos.org/build/11995872/nixlog/1/raw>.
This commit is contained in:
Peter Simons 2014-06-21 12:25:31 +02:00
parent 7179bdbcfe
commit 92082524a9

View file

@ -82,10 +82,6 @@ stdenv.mkDerivation {
# gitweb.cgi, need to patch so that it's found
sed -i -e "s|'compressor' => \['gzip'|'compressor' => ['${gzip}/bin/gzip'|" \
$out/share/gitweb/gitweb.cgi
wrapProgram $out/bin/git \
--set GIT_SSL_CAINFO "\$OPENSSL_X509_CERT_FILE"
''
+ (if svnSupport then