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.
Open
Description
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
Labels
No labels