diff --git a/routers/web/repo/commit.go b/routers/web/repo/commit.go index ec9e49eb9c..0e5d1f0a1f 100644 --- a/routers/web/repo/commit.go +++ b/routers/web/repo/commit.go @@ -416,12 +416,6 @@ func Diff(ctx *context.Context) { } } - ctx.Data["BranchName"], err = commit.GetBranchName() - if err != nil { - ctx.ServerError("commit.GetBranchName", err) - return - } - ctx.HTML(http.StatusOK, tplCommitPage) } diff --git a/templates/repo/commit_page.tmpl b/templates/repo/commit_page.tmpl index 7fec88cb79..e37686025b 100644 --- a/templates/repo/commit_page.tmpl +++ b/templates/repo/commit_page.tmpl @@ -71,8 +71,8 @@ "branchForm" "branch-dropdown-form" "branchURLPrefix" (printf "%s/_cherrypick/%s/" $.RepoLink .CommitID) "branchURLSuffix" "" "setAction" true "submitForm" true}} -
- + +