cannot execute git fetch
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
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.
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
- Dominant language
- C#
- Stars
- 3.5k
- Forks
- 925
- PR merge metrics
- No merged PRs in 30d
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.
More from libgit2/libgit2sharp
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
libgit2/libgit2sharp#2193 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
libgit2/libgit2sharp#2192 · 1 comment ·
-
Website is down Open
Difficulty 4/5 3-5 days Newbie friendliness 20/100
libgit2/libgit2sharp#2191 · 2 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
libgit2/libgit2sharp#2189 · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
libgit2/libgit2sharp#2187 · 2 comments ·
All issues in libgit2/libgit2sharp
Similar issues
-
Status: Waiting triage Type: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
nanoframework/Home#1857 ·
-
kind/bug kind/regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
unoplatform/uno.toolkit.ui#1646 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nightscout/nocturne#1379 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
elastic/esql-dotnet#47 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100