Skip to content

Commit

Permalink
v.1.3.0 - Rollbacks
Browse files Browse the repository at this point in the history
This version of PHPloy implements the ability to rollback your deployment to an earlier version with just one command. fixes #2

Signed-off-by: Baki Goxhaj <banago@gmail.com>
  • Loading branch information
banago committed Feb 14, 2014
1 parent 530921f commit f739f0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phploy
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,8 @@ class PHPloy {
}

// If revision is not HEAD, the current one, it means this is a rollback.
// So, we have to revert the master because we reverted to a earlier revision
// before the deploy start.
// So, we have to revert the master because we reverted to a earlier
// revision before the deploy start.
if( $this->revision != 'HEAD' ) {
$command = 'git --git-dir="' . $this->repo . '/.git" --work-tree="' . $this->repo . '" checkout master';
exec(escapeshellcmd($command));
Expand Down

0 comments on commit f739f0d

Please sign in to comment.