libgit2/pygit2

Error "GitError: authentication required but no callback set" on remote.push() over SSH

mixanol opened this issue · 3 comments

Hello!

I'm trying to push after successfull fetch and merge (+commit) to remote repository over SSH with assigned credentials callback like:
credentials(self, url, username_from_url, allowed_types):
return Keypair("git",id_rsa_pub,id_rsa,"password")
And I received "GitError: authentication required but no callback set" although fetch was success.
Remote was added by:
repo.create_remote('origin', 'git@git.gitlab_site_url:some_user/some_repo.git')

I'm using pygit2-0.21.3 with libgit2-0.21.1 compiled on Windows7 with SSH transport

OK. This helped me. Thank you

What's the work around for this since #431 is still open?
Also, although this is broken in 0.21.3, it works just fine in 0.21.2