summaryrefslogtreecommitdiffstats
path: root/routers/web/repo/pull.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-02-01 06:11:48 +0800
committerGitHub <noreply@github.com>2023-01-31 22:11:48 +0000
commitcc910014ab0df4d252ee61995df37b4a4cb92e06 (patch)
treed7a9344c02ed0531fcca0f6d9128498ea37bcfac /routers/web/repo/pull.go
parentf1f0430f9fd731310713ad723bed9618bcd53cda (diff)
downloadgitea-cc910014ab0df4d252ee61995df37b4a4cb92e06.tar.gz
gitea-cc910014ab0df4d252ee61995df37b4a4cb92e06.zip
Fix wrong hint when deleting a branch successfully from pull request UI (#22673)
Fix #18785
Diffstat (limited to 'routers/web/repo/pull.go')
-rw-r--r--routers/web/repo/pull.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/pull.go b/routers/web/repo/pull.go
index c2208120fc..71bc98d13d 100644
--- a/routers/web/repo/pull.go
+++ b/routers/web/repo/pull.go
@@ -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):