diff options
author | Julian <julian.toelle97@gmail.com> | 2019-01-06 15:32:00 +0100 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-01-06 16:32:00 +0200 |
commit | 97dafdc0578ad24a14370c813c95108c0c41fc5b (patch) | |
tree | ac0e00c50d3f1a4d91543fbe0098686bc980190f | |
parent | 0236856924160c4497c1621fa3f3e644a07bd5b4 (diff) | |
download | gitea-97dafdc0578ad24a14370c813c95108c0c41fc5b.tar.gz gitea-97dafdc0578ad24a14370c813c95108c0c41fc5b.zip |
fix commit page showing status for current default branch (#5650)
Signed-off-by: Julian Tölle <julian.toelle97@gmail.com>
-rw-r--r-- | routers/repo/commit.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/commit.go b/routers/repo/commit.go index 02ccb0caab..820a546468 100644 --- a/routers/repo/commit.go +++ b/routers/repo/commit.go @@ -201,7 +201,7 @@ func Diff(ctx *context.Context) { commitID = commit.ID.String() } - statuses, err := models.GetLatestCommitStatus(ctx.Repo.Repository, ctx.Repo.Commit.ID.String(), 0) + statuses, err := models.GetLatestCommitStatus(ctx.Repo.Repository, commitID, 0) if err != nil { log.Error(3, "GetLatestCommitStatus: %v", err) } |