Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make WebApp command ignore `.gitignore` files

  • Loading branch information...
commit e5806c0c70578b996887d0930edf6ed40b67b473 1 parent b8f8acb
Dariusz Górecki canni authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 framework/console/CConsoleCommand.php
4 framework/console/CConsoleCommand.php
View
@@ -378,7 +378,7 @@ public function buildFileList($sourceDir, $targetDir, $baseDir='')
$handle=opendir($sourceDir);
while(($file=readdir($handle))!==false)
{
- if($file==='.' || $file==='..' || $file==='.svn' ||$file==='.yii')
+ if($file==='.' || $file==='..' || $file==='.svn' ||$file==='.gitignore')
continue;
$sourcePath=$sourceDir.DIRECTORY_SEPARATOR.$file;
$targetPath=$targetDir.DIRECTORY_SEPARATOR.$file;
@@ -499,4 +499,4 @@ public function confirm($message)
echo $message.' [yes|no] ';
return !strncasecmp(trim(fgets(STDIN)),'y',1);
}
-}
+}

1 comment on commit e5806c0

Tobias Munk

Why do you ignore ".gitignore" files? And why don't you ignore you ".git" files, when you ignore ".svn"?

IMHO .gitignore files don't harm your app, in general we should make this more flexible - what's about internal mercurial files?

Please sign in to comment.
Something went wrong with that request. Please try again.