libgit2 / libgit2/libgit2sharp
cannot execute git fetch
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 3.5k
- Forks
- 925
- PR merge metrics
- No merged PRs in 30d
Description
Reproduction steps
I have a git repository with remote origin.
repository = new Repository(repositoryRootPath);
var remote = repository.Network.Remotes["origin"];
IEnumerable refSpecs = remote.FetchRefSpecs.Select(x => x.Specification).ToList();
Commands.Fetch(repository, remote.Name, refSpecs, new FetchOptions(), "ok");
Expected behavior
I expect it to run through.
Actual behavior
error:
NativeMethods.git_remote_fetch(remote, ref array.Array, fetchOptions, logMessage);
returns non zero
Version of LibGit2Sharp (release number or SHA1)
0.31.0/2.0.323
Operating system(s) tested; .NET runtime tested
4,8
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 with the reported Commands.Fetch call and the NativeMethods.git_remote_fetch entry point, using the stated LibGit2Sharp 0.31.0/2.0.323 and .NET 4.8 versions. Capture the native error and inspect the remote refspecs and FetchOptions; done means fetching origin completes without a nonzero return.
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
- Needs clarification
- Newbie friendliness
- 25/100