Permalink
Browse files

Not using Folder if its a git repository.

  • Loading branch information...
1 parent 65956ab commit bc3828179b766c8b06bd972b41d23b9feb516c38 @renan renan committed Sep 1, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Cake/Console/Command/UpgradeShell.php
@@ -128,11 +128,11 @@ public function locations() {
if (is_dir($old)) {
$this->out(__d('cake_console', 'Moving %s to %s', $old, $new));
if (!$this->params['dry-run']) {
- $Folder = new Folder($old);
- $Folder->move($new);
-
if ($this->params['git']) {
exec('git mv -f ' . escapeshellarg($old) . ' ' . escapeshellarg($new));
+ } else {
+ $Folder = new Folder($old);
+ $Folder->move($new);
}
}
}

0 comments on commit bc38281

Please sign in to comment.