Skip to content

Commit

Permalink
fix: use correct branch check condition
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanullrich committed Feb 15, 2022
1 parent b65c46f commit c307d67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public function process(): void

$currentBranch = $git->getCurrentBranch();

if ($currentBranch !== 'main' || $currentBranch !== 'master') {
if ($currentBranch !== 'main' && $currentBranch !== 'master') {
throw new Exception('Please checkout "main/master" branch first! You are currently on "'.$currentBranch.'"');
}

Expand Down

0 comments on commit c307d67

Please sign in to comment.