This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Description
If we add the following test to repository_test.go we can see this in action:
func (s *SuiteRepository) TestCommitIterClosePanic(c *C) {
r, err := NewRepository(RepositoryFixture)
r.Remotes["origin"].upSrv = &MockGitUploadPackService{}
c.Assert(err, IsNil)
c.Assert(r.Pull("origin", "refs/heads/master"), IsNil)
commits := r.Commits()
commits.Close()
}
This is due to https://github.com/src-d/go-git/blob/v2.0.0/repository.go#L98, it seems commit iteration needs a small rework.
Possible solutions