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

Clone fails for https://gitlab.com/agamigo/material #750

Closed
dave opened this issue Feb 14, 2018 · 1 comment
Closed

Clone fails for https://gitlab.com/agamigo/material #750

dave opened this issue Feb 14, 2018 · 1 comment

Comments

@dave
Copy link

dave commented Feb 14, 2018

The git command line tool is able to clone this repo:

$ git clone https://gitlab.com/agamigo/material
Cloning into 'material'...
warning: redirecting to https://gitlab.com/agamigo/material.git/
remote: Counting objects: 1016, done.
remote: Compressing objects: 100% (559/559), done.
remote: Total 1016 (delta 504), reused 679 (delta 306)
Receiving objects: 100% (1016/1016), 216.49 KiB | 564.00 KiB/s, done.
Resolving deltas: 100% (504/504), done.

... however go-git fails:

func TestClone(t *testing.T) {
	_, err := git.Clone(memory.NewStorage(), memfs.New(), &git.CloneOptions{
		URL:               "https://gitlab.com/agamigo/material",
		SingleBranch:      true,
		Depth:             1,
		RecurseSubmodules: git.DefaultSubmoduleRecursionDepth,
	})
	if err != nil {
		t.Fatal(err)
	}
}

Output:

getter_test.go:23: repository not found
@dave
Copy link
Author

dave commented Feb 14, 2018

I assume it's something to do with the line warning: redirecting to https://gitlab.com/agamigo/material.git/ in the command line git output?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants