From 81c46a76b70eff50e365737865262cc61d9e8f6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Renan=20Gon=C3=A7alves?= Date: Thu, 1 Sep 2011 22:00:42 +0200 Subject: [PATCH] Not running 'git mv ...' if its dry-run. --- lib/Cake/Console/Command/UpgradeShell.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Console/Command/UpgradeShell.php b/lib/Cake/Console/Command/UpgradeShell.php index 428882effbf..8f913c28688 100644 --- a/lib/Cake/Console/Command/UpgradeShell.php +++ b/lib/Cake/Console/Command/UpgradeShell.php @@ -130,9 +130,10 @@ public function locations() { if (!$this->params['dry-run']) { $Folder = new Folder($old); $Folder->move($new); - } - if ($this->params['git']) { - exec('git mv -f ' . escapeshellarg($old) . ' ' . escapeshellarg($new)); + + if ($this->params['git']) { + exec('git mv -f ' . escapeshellarg($old) . ' ' . escapeshellarg($new)); + } } } }