File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -569,7 +569,7 @@ func prMerge(cmd *cobra.Command, args []string) error {
569569 }
570570 }
571571
572- localBranchExists := git .DoesLocalBranchExist (pr .HeadRefName )
572+ localBranchExists := git .HasLocalBranch (pr .HeadRefName )
573573 if localBranchExists {
574574 err = git .DeleteLocalBranch (pr .HeadRefName )
575575 if err != nil {
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ func DeleteRemoteBranch(branch string) error {
215215 return err
216216}
217217
218- func DoesLocalBranchExist (branch string ) bool {
218+ func HasLocalBranch (branch string ) bool {
219219 configCmd := GitCommand ("rev-parse" , "--verify" , "refs/heads/" + branch )
220220 _ , err := run .PrepareCmd (configCmd ).Output ()
221221 return err == nil
You can’t perform that action at this time.
0 commit comments