pygit2
pygit2 copied to clipboard
Python bindings for libgit2
As of now the documentation states in an example that a branch can be created via ``` repo.branches.local.crate("name-for-a-branch") ``` see https://github.com/libgit2/pygit2/blob/2accdf97ded8c3b777465e22c4e779692562fa9f/docs/branches.rst?plain=1#L36 but the signature of actual `create` function is different...
Hi folks! I'm running into this weird error when running my python code with [ray](https://github.com/ray-project/ray). Basically I get `AttributeError: type object 'Signature' has no attribute '_encoding'`. But it works fine...
Hello, Sometimes I have to add directories matched with `.gitignore` to repository. libgit2 function `git_index_add_all` have `force` flag for this. But pygit2 does not have argument for flags. Is it...
Hi, apparently the wheels for **Windows** are missing in the [release 1.12.2](https://pypi.org/project/pygit2/1.12.2/#files). This is probably caused by the failing [appveyor build](https://ci.appveyor.com/project/jdavid/pygit2/branch/master/job/rvg33jo89prb1wvs#L1134). The upload to pypi with [`twine`](https://github.com/pypa/twine) in line 66...
I've installed using `pip install pygit2==1.12.1`. The environment is a `python:3.10` docker container. I'm receiving: ``` Traceback (most recent call last): ... File "...", line 197, in pull_repo remote.save() File...
To reproduce: git clone https://src.fedoraproject.org/rpms/python-pymongo.git cd python-pymongo python3 >>> import pygit2 >>> pyrepo = pygit2.Repository("./") >>> pyrepo.checkout("a3432e746082d0c96811cbf87aa7ae8e7fe62bc8") Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python3.11/site-packages/pygit2/repository.py", line...
Hi, when listing branches, we get "/usr/local/lib/python3.8/site-packages/pygit2/repository.py", line 1526, in __iter__ for branch_name in self._repository.listall_branches(self._flag): | for branch_name in self._repository.listall_branches(self._flag): UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 7-8: invalid...
At present `hash` and `pygit2.hash` have the same repr. We can tell them apart by looking at the `__module__` attribute. But not their `type`. ```python Python 3.10.6 (main, Nov 14...
Suppose the git directory is `repos/v8`. When the ownership of `repos/v8` is `test:test`, initialize the repository with Python under root authority. Prompt error: `_ pygit2.GitError: Repository not found at repos/v8/...
Is there any way to execute a method like `git gc --prune=now` using pygit2? It would come in very handy to be able to get rid of unused commits that...