Преглед изворни кода

Remove VCS info from the root dir only, fixes #1229

Jordi Boggiano пре 12 година
родитељ
комит
8949d43dca
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/Composer/Command/CreateProjectCommand.php

+ 1 - 1
src/Composer/Command/CreateProjectCommand.php

@@ -194,7 +194,7 @@ EOT
             )
             )
         ) {
         ) {
             $finder = new Finder();
             $finder = new Finder();
-            $finder->directories()->in(getcwd())->ignoreVCS(false)->ignoreDotFiles(false);
+            $finder->depth(1)->directories()->in(getcwd())->ignoreVCS(false)->ignoreDotFiles(false);
             foreach (array('.svn', '_svn', 'CVS', '_darcs', '.arch-params', '.monotone', '.bzr', '.git', '.hg') as $vcsName) {
             foreach (array('.svn', '_svn', 'CVS', '_darcs', '.arch-params', '.monotone', '.bzr', '.git', '.hg') as $vcsName) {
                 $finder->name($vcsName);
                 $finder->name($vcsName);
             }
             }