diff --git a/src/Composer/Command/InitCommand.php b/src/Composer/Command/InitCommand.php index 2a7132fa5..994817727 100644 --- a/src/Composer/Command/InitCommand.php +++ b/src/Composer/Command/InitCommand.php @@ -451,7 +451,7 @@ EOT return $parser->parseNameVersionPairs($requirements); } - protected function addVendorIgnore($ignoreFile, $vendor = 'vendor') + protected function addVendorIgnore($ignoreFile, $vendor = '/vendor/') { $contents = ""; if (file_exists($ignoreFile)) {