mirror of
https://github.com/samsonjs/retrogit.git
synced 2026-03-25 09:25:49 +00:00
List commits in chronological order.
This commit is contained in:
parent
4f2a66c313
commit
d5492565e1
1 changed files with 3 additions and 3 deletions
|
|
@ -221,9 +221,9 @@ func (digest *Digest) fetch(githubClient *github.Client) error {
|
|||
if err != nil {
|
||||
ch <- &RepoDigestResponse{nil, nil, err}
|
||||
} else {
|
||||
digestCommits := make([]DigestCommit, 0, len(commits))
|
||||
for i, _ := range commits {
|
||||
digestCommits = append(digestCommits, newDigestCommit(&commits[i], repo, digest.TimezoneLocation))
|
||||
digestCommits := make([]DigestCommit, len(commits))
|
||||
for i := range commits {
|
||||
digestCommits[len(commits)-i-1] = newDigestCommit(&commits[i], repo, digest.TimezoneLocation)
|
||||
}
|
||||
ch <- &RepoDigestResponse{intervalDigest, &RepoDigest{repo, digestCommits}, nil}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue