libgit2sharp icon indicating copy to clipboard operation
libgit2sharp copied to clipboard

cannot execute git fetch

Open xavgru12 opened this issue 11 months ago • 0 comments

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

xavgru12 avatar Jan 06 '25 06:01 xavgru12