From bc3828179b766c8b06bd972b41d23b9feb516c38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Renan=20Gon=C3=A7alves?= Date: Fri, 2 Sep 2011 00:19:37 +0200 Subject: [PATCH] Not using Folder if its a git repository. --- lib/Cake/Console/Command/UpgradeShell.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Console/Command/UpgradeShell.php b/lib/Cake/Console/Command/UpgradeShell.php index 41d9183bb..84888de57 100644 --- a/lib/Cake/Console/Command/UpgradeShell.php +++ b/lib/Cake/Console/Command/UpgradeShell.php @@ -128,11 +128,11 @@ class UpgradeShell extends Shell { 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); } } }