Skip to content

cannot execute git fetch #2138

Open
Open
@xavgru12

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions