Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 81c46a76b70eff50e365737865262cc61d9e8f6a 1 parent 265c094
@renan renan authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/Cake/Console/Command/UpgradeShell.php
View
7 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));
+ }
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.