8000 [v4] git.PlainClone: "remote repository is empty" error from a normal repository · Issue #1296 · src-d/go-git · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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
Open
@ahmetb

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.

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

      0