浏览代码

Also clean up DYLD_LIBRARY_PATH before running git, refs #2146

Jordi Boggiano 10 年之前
父节点
当前提交
c9f666f60b
共有 1 个文件被更改,包括 3 次插入0 次删除
  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')) {
         if (getenv('GIT_WORK_TREE')) {
             putenv('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)
     public static function getGitHubDomainsRegex(Config $config)