BUGFIX: fix the gitignore updates done by phing update_modules

This commit is contained in:
Mateusz Uzdowski 2012-05-31 12:02:55 +12:00
parent 4bb7d6a940
commit 095f35528e

View File

@ -156,7 +156,7 @@ class LoadModulesTask extends SilverStripeBuildTask {
if (!$storeLocally && !$usePiston && file_exists('.gitignore')) {
$gitIgnore = file_get_contents('.gitignore');
if (strpos($gitIgnore, $moduleName) === false) {
$this->exec("echo $$moduleName >> .gitignore");
$this->exec("echo $moduleName >> .gitignore");
}
}
} else {
@ -454,4 +454,4 @@ class LoadModulesTask_PistonLoader extends LoadModulesTask_Loader {
function getModifiedFiles() {
return '';
}
}
}