Skip to content

Commit 78a4a4b

Browse files
committed
gitbase: remove git.Log from index commit iterator
Fixes #769 git.Log was being passed as commit iter to the index iterator, but the new commitIter should be passed instead. That generated a discrepancy between the results of indexes and the sames queries with no indexes. Signed-off-by: Miguel Molina <[email protected]>
1 parent d85b3d9 commit 78a4a4b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

commits.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package gitbase
33
import (
44
"io"
55

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

98
"gopkg.in/src-d/go-git.v4/plumbing"
@@ -414,10 +413,7 @@ func newCommitsKeyValueIter(
414413
return nil, err
415414
}
416415

417-
commits, err :=
418-
repo.Log(&git.LogOptions{
419-
All: true,
420-
})
416+
commits, err := newCommitIter(repo, false)
421417
if err != nil {
422418
return nil, err
423419
}

0 commit comments

Comments
 (0)