summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorJulien Tant <julien@craftyx.fr>2018-08-01 05:00:35 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2018-08-01 11:00:35 +0800
commitced08d18a40b71cf4a290d9795280c2ef79e168f (patch)
tree3af4f03b5f15f67c900e0d8e46fad136819bb368 /routers
parentd57233680b71925f3812be885df479bb98cddf9c (diff)
downloadgitea-ced08d18a40b71cf4a290d9795280c2ef79e168f.tar.gz
gitea-ced08d18a40b71cf4a290d9795280c2ef79e168f.zip
fix IsPullReuqestBroken->IsPullRequestBroken (#4578)
Signed-off-by: Julien Tant <julien@craftyx.fr>
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/pull.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go
index c8d65731ee..1d7747450b 100644
--- a/routers/repo/pull.go
+++ b/routers/repo/pull.go
@@ -264,7 +264,7 @@ func PrepareMergedViewPullInfo(ctx *context.Context, issue *models.Issue) *git.P
if err != nil {
if strings.Contains(err.Error(), "fatal: Not a valid object name") {
- ctx.Data["IsPullReuqestBroken"] = true
+ ctx.Data["IsPullRequestBroken"] = true
ctx.Data["BaseTarget"] = "deleted"
ctx.Data["NumCommits"] = 0
ctx.Data["NumFiles"] = 0
@@ -302,7 +302,7 @@ func PrepareViewPullInfo(ctx *context.Context, issue *models.Issue) *git.PullReq
}
if pull.HeadRepo == nil || !headGitRepo.IsBranchExist(pull.HeadBranch) {
- ctx.Data["IsPullReuqestBroken"] = true
+ ctx.Data["IsPullRequestBroken"] = true
ctx.Data["HeadTarget"] = "deleted"
ctx.Data["NumCommits"] = 0
ctx.Data["NumFiles"] = 0
@@ -313,7 +313,7 @@ func PrepareViewPullInfo(ctx *context.Context, issue *models.Issue) *git.PullReq
pull.BaseBranch, pull.HeadBranch)
if err != nil {
if strings.Contains(err.Error(), "fatal: Not a valid object name") {
- ctx.Data["IsPullReuqestBroken"] = true
+ ctx.Data["IsPullRequestBroken"] = true
ctx.Data["BaseTarget"] = "deleted"
ctx.Data["NumCommits"] = 0
ctx.Data["NumFiles"] = 0