From c9f666f60b54e64ba9cc2b0b3e94174f89584206 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 11 Jan 2015 23:09:41 +0000 Subject: [PATCH] Also clean up DYLD_LIBRARY_PATH before running git, refs #2146 --- src/Composer/Util/Git.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Composer/Util/Git.php b/src/Composer/Util/Git.php index 4a0c3933f..c3c5eb02c 100644 --- a/src/Composer/Util/Git.php +++ b/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)