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.

Nonexistent remote HEAD ref #645

Open
@k15z

Description

@k15z

Running git clone https://github.com/lodyagin/bitcoinj produces a warning, but you can list branches and check out the correct one.

warning: remote HEAD refers to nonexistent ref, unable to checkout.

How would you do this in go-git? The below code results in plumbing.ErrReferenceNotFound.

repository, err := git.Clone(memory.NewStorage(), memfs.New(), &git.CloneOptions{
	URL: "https://github.com/lodyagin/bitcoinj",
})

It seems like this is currently not possible?

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