libgit2sharp icon indicating copy to clipboard operation
libgit2sharp copied to clipboard

Branch is checked out, although CloneOptions.Checkout=false is set

Open PulsarFX opened this issue 3 years ago • 0 comments

Reproduction steps

Clone a repo like so:

Repository.Clone(remoteDir, localDir, new CloneOptions()
{
    Checkout = false,
    FetchOptions = new FetchOptions() { TagFetchMode = TagFetchMode.All }
});

Expected behavior

No branch is checked out.

Actual behavior

A branch gets checked out. Even if develop or master are missing, it takes the first branch it can find.

Version of LibGit2Sharp (release number or SHA1)

0.27.0-preview-0175

Operating system(s) tested; .NET runtime tested

.net 5.0.17

PulsarFX avatar Jul 06 '22 08:07 PulsarFX