1
0
Fork 0

Always clear git env vars

pull/1969/merge
Jordi Boggiano 2013-06-19 11:29:57 +02:00
parent 7f2b321044
commit 48b6e8cd21
1 changed files with 2 additions and 6 deletions

View File

@ -29,11 +29,7 @@ class Git
putenv('GIT_ASKPASS=echo'); putenv('GIT_ASKPASS=echo');
// clean up rogue git env vars in case this is running in a git hook // clean up rogue git env vars in case this is running in a git hook
if (getenv('GIT_DIR')) {
putenv('GIT_DIR'); putenv('GIT_DIR');
}
if (getenv('GIT_WORK_TREE')) {
putenv('GIT_WORK_TREE'); putenv('GIT_WORK_TREE');
} }
}
} }