Not using Folder if its a git repository.

This commit is contained in:
Renan Gonçalves 2011-09-02 00:19:37 +02:00
parent 65956ab863
commit bc3828179b

View file

@ -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);
}
}
}