From 8949d43dca55c9760f58d3d25a29068f448f779c Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 18 Oct 2012 09:36:22 +0200 Subject: [PATCH] Remove VCS info from the root dir only, fixes #1229 --- src/Composer/Command/CreateProjectCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Command/CreateProjectCommand.php b/src/Composer/Command/CreateProjectCommand.php index 33cd46f0e..29b4fce6c 100644 --- a/src/Composer/Command/CreateProjectCommand.php +++ b/src/Composer/Command/CreateProjectCommand.php @@ -194,7 +194,7 @@ EOT ) ) { $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) { $finder->name($vcsName); }