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

Log hangs infinitely on certain commit in git/git #912

@vmarkovtsev

Description

@vmarkovtsev

I run Repository.Log over git/git using the master revision of go-git.

// repository is cloned from git/git

cit, err := repository.Log(&git.LogOptions{From: plumbing.ZeroHash})
if err != nil {
	log.Fatalf("unable to collect the commit history: %v", err)
}
defer cit.Close()
cit.ForEach(func(commit *object.Commit) error {
	log.Println(commit.Hash.String())
})

This prints 27894 hashes and finally gets stuck on ae03ee644ec52f2aa2769dfd4929c5ff85c2a899 eating 100% CPU.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions