libgit2 / pygit2

Python bindings for libgit2
https://www.pygit2.org/
Other
1.58k stars 382 forks source link

LibGit2Sharp.LibGit2SharpException: failed to parse supported auth schemes: The operation identifier is not valid #1226

Closed Rpatil3g closed 12 months ago

Rpatil3g commented 12 months ago

LibGit2Sharp.PullOptions options = new LibGit2Sharp.PullOptions(); options.FetchOptions = new FetchOptions(); options.FetchOptions.CredentialsProvider = new CredentialsHandler( (url, usernameFromUrl, types) => new UsernamePasswordCredentials() { Username = _gitCredsUser, Password = _gitCredsPassword });

            // User information to create a merge commit
            var signature = new LibGit2Sharp.Signature(
                new Identity(_gitUsername, _gitEmail), DateTimeOffset.Now);

            // Pull
            Commands.Pull(repo, signature, options);

I am using LibGit2Sharp dll of 0.26.0.0, from last few days I am getting "failed to parse supported auth scheme" error while doing git pull. My git repository is on GITHUB. I am sure there might security related changes done on github side. that's why this error come.

Rpatil3g commented 12 months ago

closed due to duplicate issue, here is original issue: https://github.com/libgit2/libgit2sharp/issues/2048