|
|
@ -1381,7 +1381,7 @@ func CleanUpPullRequest(ctx *context.Context) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func deleteBranch(ctx *context.Context, pr *issues_model.PullRequest, gitRepo *git.Repository) { |
|
|
|
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 { |
|
|
|
if err := repo_service.DeleteBranch(ctx.Doer, pr.HeadRepo, gitRepo, pr.HeadBranch); err != nil { |
|
|
|
switch { |
|
|
|
switch { |
|
|
|
case git.IsErrBranchNotExist(err): |
|
|
|
case git.IsErrBranchNotExist(err): |
|
|
|