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

I am trying offload a couple of tasks to a task queue (redis task queue) and needs to pickle it, what am I missing. I am new to python pickling....

pygit2, when built for Python 3, treats paths as Unicode and will fail if a path isn't decodable as the filesystem encoding. But Git paths are byte strings, not Unicode...

self = , specs = ['refs/heads/git-push-test-ssh'], callbacks = proxy = None def push(self, specs, callbacks=None, proxy=None): """ Push the given refspec to the remote. Raises ``GitError`` on protocol error or...

```python Python 3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import pygit2 >>> len(pygit2.Repository().index) 2 >>> for item...

Some commits may have a number of Signed-off-by tags, but as `message_trailers` is a `dict` only the last one is present. How about also exposing this parsed data, which is...

in the documentation is says: > Libgit2 v1.8.x; binary wheels already include libgit2, so you only need to worry about this if you install the source package. But in reality...

Support for `PathLike`s was added in https://github.com/libgit2/pygit2/pull/990. However, it doesn't appear the typing for some of the affected methods were updated. `Repository.__init__` was the one I caught, but there may...

I have changed a submodule and want to update the repository of this submodule. ``` remote = 'origin' remote = repo.remotes[remote] repo.config.get_global_config()['safe.directory'] = remote.url res = remote.push(['refs/heads/temp']) ``` But I...

Hello, We are using pygit2 (1.15.0) against repositories hosted on azure devops, and have started seeing issues lately as Microsoft are phasing out ssh-rsa keys: [https://devblogs.microsoft.com/devops/ssh-rsa-deprecation](https://devblogs.microsoft.com/devops/ssh-rsa-deprecation) The error message I...

I am running tests at my machine and `test_binary_diff()` fails with following error: ``` repo = pygit2.Repository('/tmp/pytest/test_binary_diff0/binaryfilerepo/.git/') def test_binary_diff(repo): diff = repo.diff('HEAD', 'HEAD^') assert PATCH_BINARY == diff.patch diff = repo.diff('HEAD',...