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

PlainClone not fully populating tree on Windows #389

Closed
SlowPokeInTexas opened this issue May 11, 2017 · 3 comments
Closed

PlainClone not fully populating tree on Windows #389

SlowPokeInTexas opened this issue May 11, 2017 · 3 comments
Labels

Comments

@SlowPokeInTexas
Copy link

I acknowledge that it's entirely possible (highly likely even) that I'm doing something wrong, but it's not immediately obvious to me what it is. I'm trying to use PlainClone and I'm getting the initial .git files for the repository but not the actual source. I'm either getting a 'repository already exists' or a 'reference not found' error. I'd appreciate any feedback on what I'm doing wrong.

I'm using go-git.V4 on Go 1.8

_, err := git.PlainClone("d:/localsrc", false, &git.CloneOptions{
		URL: "https://ourstash.scm.ourlibrary.git",
		RemoteName: "develop",  //tried commenting this out to no avial
		Depth : 9999999,
		SingleBranch: true,  //setting this to true results in 'repository already exists' error, setting this to false results in 'reference not found' error
		RecurseSubmodules: 9999999,
})

@smola smola added the windows label May 16, 2017
@smola
Copy link
Collaborator

smola commented May 16, 2017

@SlowPokeInTexas Does your repository contain symlinks or submodules? There are some known problems with file handling on Windows, see windows

We'll look into this.

@mcuadros
Copy link
Contributor

@SlowPokeInTexas any updated about this? Can you try with the last version?

@mcuadros
Copy link
Contributor

If still happens please reopen the issue.

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

No branches or pull requests

3 participants