aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorYarden Shoham <hrsi88@gmail.com>2023-02-01 03:35:38 +0200
committerGitHub <noreply@github.com>2023-02-01 01:35:38 +0000
commit263d06f6161d9268f1ed0520e7a75a5bb81ad4da (patch)
tree5af05a93f397097f5f8e595f9b67a1b43f868b00 /routers
parent6dc16c11542c94dd32d5de06a57f7d9a566f9e15 (diff)
downloadgitea-263d06f6161d9268f1ed0520e7a75a5bb81ad4da.tar.gz
gitea-263d06f6161d9268f1ed0520e7a75a5bb81ad4da.zip
Fix wrong hint when deleting a branch successfully from pull request UI (#22673) (#22698)
Backport #22673 Fix #18785 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'routers')
-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 fc95bbf240..98b78645dc 100644
--- a/routers/web/repo/pull.go
+++ b/routers/web/repo/pull.go
@@ -1381,7 +1381,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):