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.

PlainClone not fully populating tree on Windows #389

@SlowPokeInTexas

Description

@SlowPokeInTexas

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,
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions