Skip to content

Commit 97dafdc

Browse files
apricotelafriks
authored andcommitted
fix commit page showing status for current default branch (#5650)
Signed-off-by: Julian Tölle <[email protected]>
1 parent 0236856 commit 97dafdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/repo/commit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ func Diff(ctx *context.Context) {
201201
commitID = commit.ID.String()
202202
}
203203

204-
statuses, err := models.GetLatestCommitStatus(ctx.Repo.Repository, ctx.Repo.Commit.ID.String(), 0)
204+
statuses, err := models.GetLatestCommitStatus(ctx.Repo.Repository, commitID, 0)
205205
if err != nil {
206206
log.Error(3, "GetLatestCommitStatus: %v", err)
207207
}

0 commit comments

Comments
 (0)