Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot execute git fetch #2138

Open
xavgru12 opened this issue Jan 6, 2025 · 0 comments
Open

cannot execute git fetch #2138

xavgru12 opened this issue Jan 6, 2025 · 0 comments

Comments

@xavgru12
Copy link

xavgru12 commented Jan 6, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant