pygit2 icon indicating copy to clipboard operation
pygit2 copied to clipboard

Python bindings for libgit2

Results 203 pygit2 issues
Sort by recently updated
recently updated
newest added

As it stands the following happens ``` >>> import os, pygit2 >>> r = pygit2.Repository(os.getcwd()) >>> 'origin' in r.remotes False ``` Whereas looping over the names results in a match...

When I try to clone a repository using the [pygit2.clone_repository](https://github.com/libgit2/pygit2/blob/fadfddee68e6f4a938669e9b3c5e851bc50ee6be/pygit2/__init__.py#L165) function, it keeps giving me a `'.' exists and is not an empty directory` error. I can solve this by...

How do I walk through a specific subdirectory? , in terminal I can do something similar to `git log -- path/to/folder` However in this lib I couldn't find a way...

Cloning with a remote callback results in `HEAD` pointing to the user's `init.defaultBranch` instead of the default branch of the cloned repository. See repro below. Looks like an upstream bug...

I'm trying to use pygit2 to clone a GitHub repo using OAuth tokens. This actually works well from the command line, as explained on GitHub's blog [here](https://github.com/blog/1270-easier-builds-and-deployments-using-git-over-https-and-oauth). So, I do:...

This issue is about `repo.reset()` not seeming to work reliably 100% of the time. I have some CI tests that modify a file in a non-bare repo, commit the change...

``` import pygit2 from github import Github github_username = "user" github_password = "password" github_email = "email" # login to github and authenticated_github_user = Github(github_username, github_password) user = authenticated_github_user.get_user() is_org: bool...

support

Issue found that when I stage and commit in pygit2 the staged file list is not removed. This in turn causes the whole working directory to be cleared because the...

Hi, Thank you for pygit2! I'm using it extensively for git tooling in Ubuntu, but occasionally I find some corner where a feature doesn't exist and I have to resort...

feature

# Error ```python ✘ no@no  ~/gitfstest  gitfs [REDACTED] . Traceback (most recent call last): File "/usr/bin/gitfs", line 33, in sys.exit(load_entry_point('gitfs==0.5.1', 'console_scripts', 'gitfs')()) File "/usr/lib/python3.8/site-packages/gitfs/__init__.py", line 19, in mount...