You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having an issue with a remote repo hosted on a BitBucket v7.21.4. The clone command works just fine, but when I try to fetch a particular branch if fails with LibGit2Sharp.LibGit2SharpException: unexpected EOF.
The issue is constantly reproducible.
Reproduction steps
Example code:
using var repo = new Repository(repositoryPath);
var fetchOpts = new FetchOptions();
fetchOpts.CertificateCheck = (_,_,_) => true;
fetchOpts.CredentialsProvider = (_, _, _) => new UsernamePasswordCredentials() { Username = remoteUser, Password = remotePassword };
fetchOpts.Prune = true;
fetchOpts.TagFetchMode = TagFetchMode.None;
var remote = repo.Network.Remotes["origin"];
Commands.Fetch(repo, remote.Name, [$"+refs/heads/{remoteBranch}:refs/remotes/{remote.Name}/{remoteBranch}"], fetchOpts, null);
I noticed that it sends only thin-pack and ofs-delta arguments as opposed to multi_ack_detailed side-band-64k include-tag thin-pack ofs-delta from libgit2sharp.
Is there a way to control this behavior with code?
I'm having an issue with a remote repo hosted on a BitBucket v7.21.4. The clone command works just fine, but when I try to fetch a particular branch if fails with
LibGit2Sharp.LibGit2SharpException: unexpected EOF
.The issue is constantly reproducible.
Reproduction steps
Example code:
Expected behavior
Fetch to complete successfully.
Actual behavior
Below is the trace:
Below is the the trace from the OS git client fetch from the same remote which works just fine:
I noticed that it sends only
thin-pack
andofs-delta
arguments as opposed tomulti_ack_detailed side-band-64k include-tag thin-pack ofs-delta
from libgit2sharp.Is there a way to control this behavior with code?
Version of LibGit2Sharp (release number or SHA1)
Libgit2sharp v0.29.0
Operating system(s) tested; .NET runtime tested
.NET SDK:
Version: 8.0.101
Commit: 6eceda187b
Workload version: 8.0.100-manifests.69afb982
Runtime Environment:
OS Name: Mac OS X
OS Version: 14.3
OS Platform: Darwin
RID: osx-x64
The text was updated successfully, but these errors were encountered: