pygit2
                                
                                 pygit2 copied to clipboard
                                
                                    pygit2 copied to clipboard
                            
                            
                            
                        Python bindings for libgit2
if i have a repo and call ``` >> 'branch_no_exist' in repo.branches False ``` as expected, but ``` >> 'branch_no_exist/' in repo.branches Traceback (most recent call last): pygit2/repository.py", line 1156,...
pygit2 == 1.7.0 I have been trying to commit changes to repo but unable to do so snippet oid = repository.create_commit(, author, commiter, message, tree, [repository.head.get_object().hex]) author and commiter are...
I am committing some files using pygit2 and want to push to remote branch. This is what i am doing: ``` repo = pygit2.Repository(build_dir) branch = repo.lookup_branch(local_branch) repo.checkout(branch) for fl...
I use pygit2 in a Python tool which is distributed to non-programmers on Windows. Every new Python release, I get support requests from people who installed the latest Python version...
Ill get an "submodule update: request failed with status code: 404" an any submodule with relative path, is there an way to work around that atm ? does someone has...
I'm using pygit2 via battenberg project: ``` File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pygit2/callbacks.py", line 471, in get_credentials raise TypeError("invalid credential type") TypeError: invalid credential type ``` Is it expected to find credentials in a...
using pygit2 1.5, i was trying a script to do a checkout with keypair from memory but its consistently erroring out on invalid cred type. ```python from pathlib import Path...
As discussed in #830 and #996 this is a initial implementation of a new exception handling mechanism. The goals so far have been: - Don't break backwards compatibility - Wrap...
The `repository.resolve_refish` function is meant to return a commit object as the first element of the tuple ( [source](https://github.com/libgit2/pygit2/blob/master/pygit2/repository.py#L294-L296) ). However, if given a SHA of an annotated tag, it...
Is there any support for implementing write() for custom python ODB backends? I noticed it wasn't in the docs, but tried implementing it like so: ```py class MyOdbBackend(pygit2.OdbBackend): # snip...