Skip to content

Commit

Permalink
Merge pull request #771 from erizocosmico/fix/index-commit-iter
Browse files Browse the repository at this point in the history
gitbase: remove git.Log from index commit iterator
  • Loading branch information
ajnavarro committed Apr 2, 2019
2 parents d85b3d9 + 78a4a4b commit 671519b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions commits.go
Expand Up @@ -3,7 +3,6 @@ package gitbase
import (
"io"

git "gopkg.in/src-d/go-git.v4"
"gopkg.in/src-d/go-mysql-server.v0/sql"

"gopkg.in/src-d/go-git.v4/plumbing"
Expand Down Expand Up @@ -414,10 +413,7 @@ func newCommitsKeyValueIter(
return nil, err
}

commits, err :=
repo.Log(&git.LogOptions{
All: true,
})
commits, err := newCommitIter(repo, false)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 671519b

Please sign in to comment.