Skip to content

Commit

Permalink
Not running 'git mv ...' if its dry-run.
Browse files Browse the repository at this point in the history
  • Loading branch information
renan committed Sep 1, 2011
1 parent 265c094 commit 81c46a7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/Cake/Console/Command/UpgradeShell.php
Expand Up @@ -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));
}
}
}
}
Expand Down

0 comments on commit 81c46a7

Please sign in to comment.