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.

[v4] git.PlainClone: "remote repository is empty" error from a normal repository #1296

Description

@ahmetb

I'm doing something super straightforward:

	_, err := git.PlainClone(destinationPath, false, &git.CloneOptions{
		URL: "https://github.com/kubernetes-sigs/krew-index.git",
	})
	return err

This returns error remote repository is empty.

I tried os.MkdirAll(destinationPath, 0755) ahead of time, but it doesn't make any difference.

This is purely copied from example at https://godoc.org/gopkg.in/src-d/go-git.v4#example-PlainClone so it's surprising it didn't work out of the box.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions