Skip to content

Commit

Permalink
Trim after command in release.
Browse files Browse the repository at this point in the history
  • Loading branch information
haringsrob committed May 25, 2022
1 parent ec4c358 commit f039768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/Release.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private function isNotBehind()
private function isOnMainBranch()
{
$currentBranch = $this->executeInTwillDir('git rev-parse --abbrev-ref HEAD');
if (!in_array($currentBranch, ['2.x', '3.x'])) {
if (!in_array(trim($currentBranch), ['2.x', '3.x'])) {
$this->error('Current working branch must be a releasable branch (2.x or 3.x)');
exit(1);
}
Expand Down

0 comments on commit f039768

Please sign in to comment.