Browse Source

Also clean up DYLD_LIBRARY_PATH before running git, refs #2146

Jordi Boggiano 10 years ago
parent
commit
c9f666f60b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/Composer/Util/Git.php

+ 3 - 0
src/Composer/Util/Git.php

@@ -169,6 +169,9 @@ class Git
         if (getenv('GIT_WORK_TREE')) {
             putenv('GIT_WORK_TREE');
         }
+
+        // clean up env for OSX, see https://github.com/composer/composer/issues/2146#issuecomment-35478940
+        putenv("DYLD_LIBRARY_PATH");
     }
 
     public static function getGitHubDomainsRegex(Config $config)