Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to push to repos using the pygit2? #379

Closed
avckp opened this issue Jun 29, 2014 · 5 comments
Closed

Is there a way to push to repos using the pygit2? #379

avckp opened this issue Jun 29, 2014 · 5 comments

Comments

@avckp
Copy link

avckp commented Jun 29, 2014

When trying to push using ssh I get error.
ro.push('refs/heads/master')

Traceback (most recent call last):
File "<input>", line 1, in <module>
GitError: This transport isn't implemented. Sorry

@carlosmn
Copy link
Member

The version of libgit2 you're using was not built with support for ssh. You'll need to make sure the development libraries for libssh2 are available at the moment of building for it to link against it and expose ssh functionality.

@avckp
Copy link
Author

avckp commented Jun 29, 2014

Thanks.I just found the same discussion on other thread.
But I am having trouble linking it in the CMakeList.txt file.

Another weird thing is I can not find the UserPass module inside pygit2. It does not seem to be dependent on libgit2 installation.
from pygit2 import UserPass

Traceback (most recent call last):
File "", line 1, in
ImportError: cannot import name UserPass

help(pygit2.UserPass)

Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'UserPass'

@carlosmn
Copy link
Member

Then it looks like you're using a pygit2 version without it and should update to the latest release.

@eldavido
Copy link

@avckp did you get your issue resolved? I was on OS X, I ended up using the homebrew version of libffi and openssl but had to install libgit2 using a checkout directly from their source tree. I did the libgit CMake instructions checked out to version 0.21.1 and did a make install, and ssh-based remotes started working.

I think the version that brew installed before I ripped it out and did a manual checkout might've been incompatible with pygit2.

@avckp
Copy link
Author

avckp commented Oct 17, 2014

@eldavido yes i had to link the libraries while making, then it worked properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants