Add code comments
[MAILPOET-2004]
This commit is contained in:
@ -584,16 +584,19 @@ class RoboFile extends \Robo\Tasks {
|
|||||||
$this->yell('Delete old release branch before running release.', 40, 'red');
|
$this->yell('Delete old release branch before running release.', 40, 'red');
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
// check if local branch with name "release" exists
|
||||||
$git_status = $this->taskGitStack()
|
$git_status = $this->taskGitStack()
|
||||||
->printOutput(false)
|
->printOutput(false)
|
||||||
->exec('git rev-parse --verify release')
|
->exec('git rev-parse --verify release')
|
||||||
->run();
|
->run();
|
||||||
if ($git_status->wasSuccessful()) {
|
if ($git_status->wasSuccessful()) {
|
||||||
|
// delete local "release" branch
|
||||||
$this->taskGitStack()
|
$this->taskGitStack()
|
||||||
->printOutput(false)
|
->printOutput(false)
|
||||||
->exec('git branch -D release')
|
->exec('git branch -D release')
|
||||||
->run();
|
->run();
|
||||||
}
|
}
|
||||||
|
// create a new "release" branch and switch to it.
|
||||||
$this->taskGitStack()
|
$this->taskGitStack()
|
||||||
->printOutput(false)
|
->printOutput(false)
|
||||||
->exec('git checkout -b release')
|
->exec('git checkout -b release')
|
||||||
|
Reference in New Issue
Block a user