1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-23 00:54:28 +00:00

display commits by sha1 id

This commit is contained in:
slene 2014-03-28 19:34:01 +08:00
parent 04bc86cafc
commit d800a44a26

View File

@ -244,11 +244,11 @@ func GetCommitsByCommitId(userName, repoName, commitId string) (*list.List, erro
if err != nil {
return nil, err
}
r, err := repo.LookupReference(commitId)
oid, err := git.NewOidFromString(commitId)
if err != nil {
return nil, err
}
return r.AllCommits()
return repo.CommitsBefore(oid)
}
// Diff line types.