Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Jan 31, 2023
1 parent 4011821 commit 5b65cb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/web/repo/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,7 @@ func CleanUpPullRequest(ctx *context.Context) {
}

func deleteBranch(ctx *context.Context, pr *issues_model.PullRequest, gitRepo *git.Repository) {
fullBranchName := pr.HeadRepo.Owner.Name + "/" + pr.HeadBranch
fullBranchName := pr.HeadRepo.FullName() + ":" + pr.HeadBranch
if err := repo_service.DeleteBranch(ctx.Doer, pr.HeadRepo, gitRepo, pr.HeadBranch); err != nil {
switch {
case git.IsErrBranchNotExist(err):
Expand Down

0 comments on commit 5b65cb5

Please sign in to comment.