libgit2 / libgit2/libgit2sharp
Branch is checked out, although CloneOptions.Checkout=false is set
Open
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 3.5k
- Forks
- 925
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with Repository.Clone, CloneOptions.Checkout=false, and FetchOptions configured for all tags. Trace the clone handling of the Checkout option and verify completion by confirming that no branch is checked out, including when develop or master is absent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, git
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100