Open PulsarFX opened 2 years ago
Clone a repo like so:
Repository.Clone(remoteDir, localDir, new CloneOptions() { Checkout = false, FetchOptions = new FetchOptions() { TagFetchMode = TagFetchMode.All } });
No branch is checked out.
A branch gets checked out. Even if develop or master are missing, it takes the first branch it can find.
0.27.0-preview-0175
.net 5.0.17
Reproduction steps
Clone a repo like so:
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