From 652e09fc3ebb92ec92414fbf20a0ec46b9ab1caf Mon Sep 17 00:00:00 2001 From: Julian Date: Sun, 6 Jan 2019 19:11:49 +0100 Subject: [PATCH] fix commit page showing status for current default branch (#5650) (#5653) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Julian Tölle --- routers/repo/commit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } -- 2.39.5