Browse Source

display commits by sha1 id

for-closed-social
slene 10 years ago
parent
commit
d800a44a26
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      models/git.go

+ 2
- 2
models/git.go 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.

Loading…
Cancel
Save