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

Random EOF errors when performing clone #1303

Closed
pkaramol opened this issue Mar 31, 2020 · 0 comments
Closed

Random EOF errors when performing clone #1303

pkaramol opened this issue Mar 31, 2020 · 0 comments

Comments

@pkaramol
Copy link

I am performing in memory git clones as follows

	// creating the in mem fs to hold the checkouts
	fs := memfs.New()

	_, err = git.Clone(memory.NewStorage(), fs, &git.CloneOptions{
		URL:           repo,
		ReferenceName: plumbing.ReferenceName(branch),
		Depth:         1,
		Auth:          auth,
	})

	if err != nil {
		log.Fatalf("ERROR Cloning %s and branch %s: %s\n", repo, branch, err.Error())
	}

The problem is that sometimes I get the following error:

ERROR Cloning git@github.com:my-username/my-repo.git and
branch refs/heads/workablestg1: unexpected EOF

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

No branches or pull requests

1 participant