libgit2sharp
libgit2sharp copied to clipboard
Git + .NET = ❤
### Reproduction steps On windows 10 create keys "TLS 1.3\Client" under "Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols" and two DWORDS "DisabledByDefault" with value 0 and Enabled with value 1.  Then create a repository and...
### Reproduction steps unable to set CredentialsProvider co.FetchOptions.CredentialsProvider = (_url, _user, _cred) => new LibGit2Sharp.UsernamePasswordCredentials { Username = "username", Password = accessToken }; because the FetchOptions is null and it...
When utilizing libgit2sharp in combination with the .NET 8 PublishAot feature, all repository creation, file staging and committing operations are successful, however, the git diff function throws a NullReferenceException. Is...
How to checkout a specific folder from a repository using libgit2sharp library. I want only 1 folder from a repository, could you please help me to find the possibile solution...
### Reproduction steps I'm running this Dockerfile with a project that uses libgit2sharp. ``` FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-alpine as base EXPOSE 80 VOLUME /etc/nginx VOLUME /etc/ssl VOLUME /myproject ADD tools/ssl/myproject* /etc/ssl/ #...
### Reproduction steps upgrading from 0.28 to 0.30 on Fetch Repository.Init(_gitRootPath); using var repo = new Repository(_gitRootPath); Remote remote = repo.Network.Remotes.Add(VcConstants.ORIGIN, vcSettings.GitRepoUrl); var remoteRefSpecs = remote.FetchRefSpecs.Select(x => x.Specification); Commands.Fetch(repo, remote.Name,...
feature: Add support for registering custom merge drivers. Add unit tests for custom merge drivers. resolves libgit2/libgit2sharp#1710 Modeled in large parts after the existing Filters feature. This feature adds the...
I want to disable certificate verification when cloning a repo from GitLab. The code I am using is: ```c# var options = new CloneOptions(); options.FetchOptions.CredentialsProvider = (_url, _user, _cred) =>...
### Reproduction steps - create Azure DevOps repo with security rules enabled - create commit which violates server rules. For example `appsettings.json` ```json { "Parameters": { "note": "this will trigger...
### Reproduction steps When doing **git push** of file with size 1.3 GB, got this error: > SSL error: syscall failure: Connection reset by peer > at LibGit2Sharp.Core.Ensure.HandleError(Int32 result) in...