libgit2 / libgit2/libgit2sharp
pushing throws error when using refs
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 3.5k
- Forks
- 925
- PR merge metrics
- No merged PRs in 30d
Description
pushing via remote and refs throws No error message has been provided by the native library
Code example repo.Network.Push(remote, refs, pushOptions);
this happens in prerelease(0.27.0 preview 096) but not in 0.26.2 but i cannot use that since 0.26.2 doesnt work on linux
FULL CODE EXAMPLE:
var remote = repo.Network.Remotes.Add("pushRepo", TargetRepo, "+refs/*:refs/*");
repo.Config.Set("remote.pushRepo.mirror", true);
var pushOptions = new PushOptions
{
CredentialsProvider = (url, fromUrl, types) =>
new UsernamePasswordCredentials()
{
Username = "username",
Password = "password"
}
};
var refs = repo.Refs.Select(r => r.CanonicalName);
repo.Network.Push(remote, refs, pushOptions);
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 by reproducing the shown repo.Network.Push(remote, refs, pushOptions) call with libgit2sharp 0.27.0 preview 096 and compare it with 0.26.2 on Linux. Trace the native error returned when pushing the refs and verify that the push either succeeds or reports a useful error for the provided full example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, git
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100