Skip to content

Commit

Permalink
Fix commit to master bug (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
EyalDelarea authored Apr 10, 2023
1 parent 3285dd1 commit b03f172
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions commands/createfixpullrequests.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,7 @@ func (cfp *CreateFixPullRequestsCmd) createFixingBranch(impactedPackage string,
}
log.Info("Creating branch:", fixBranchName)
if exists {
log.Info("Branch:", fixBranchName, "already exists on remote.")
return
return "", fmt.Errorf("branch:%s already exists on remote", fixBranchName)
}

return fixBranchName, cfp.gitManager.CreateBranchAndCheckout(fixBranchName)
Expand Down

0 comments on commit b03f172

Please sign in to comment.