diff options
author | Julien Tant <julien@craftyx.fr> | 2018-08-01 05:00:35 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2018-08-01 11:00:35 +0800 |
commit | ced08d18a40b71cf4a290d9795280c2ef79e168f (patch) | |
tree | 3af4f03b5f15f67c900e0d8e46fad136819bb368 /routers | |
parent | d57233680b71925f3812be885df479bb98cddf9c (diff) | |
download | gitea-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.go | 6 |
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 |