Skip to content

Commit

Permalink
fix commit page showing status for current default branch (#5650)
Browse files Browse the repository at this point in the history
Signed-off-by: Julian Tölle <julian.toelle97@gmail.com>
  • Loading branch information
apricote authored and lafriks committed Jan 6, 2019
1 parent 0236856 commit 97dafdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/repo/commit.go
Expand Up @@ -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)
}
Expand Down

0 comments on commit 97dafdc

Please sign in to comment.