Permalink
Browse files

Not running 'git mv ...' if its dry-run.

  • Loading branch information...
1 parent 265c094 commit 81c46a76b70eff50e365737865262cc61d9e8f6a @renan renan committed Sep 1, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 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));
+ }
}
}
}

0 comments on commit 81c46a7

Please sign in to comment.