pygit2
pygit2 copied to clipboard
Python bindings for libgit2
I wish there were more kinds of error types in pygit2, so that I could do more things with them https://github.com/libgit2/libgit2/blob/198a1b209a929389c739a8a6abef13e717fdfda9/include/git2/errors.h#L56 https://github.com/libgit2/pygit2/blob/bf2d7542846fc444b86d02d44536103b27b9141f/pygit2/errors.py
Environment: - Debian sid - Python 3.11.6 - libgit2-1.7.1+ds-2 - pygit2 1.13.3-1+b1 Test case: from pygit2 import Mailmap Mailmap.from_buffer("RealName oldname ") Result: ValueError: invalid argument: 'replace_email && *replace_email' Expected result:...
As far as I can see the remote_callbacks struct is not properly initialized with the `certificate_check` callback (https://libgit2.org/libgit2/#v0.23.2/type/git_remote_callbacks). https://github.com/libgit2/pygit2/blob/611a3b3462a1acb6bc3ca0d9bd3eff7bf6154131/pygit2/callbacks.py#L384-L387 This makes it impossible to "bypass" certificate checks for example when...
This was raised originally at cpp-linter/cpp-linter-action#178 in which a large diff was parsed by `pygit2.Diff.parse_diff()` (on ubuntu-latset CI github runner). The error says: > ``` > pygit2.GitError: trailing data at...
This is with pygit2 version 0.24.0. ``` $ git init Initialized empty Git repository in /tmp/minimal/.git/ $ touch foo $ git add foo $ git commit -am "First commit" [master...
Since upgrading to 1.12.0 this has been a recurring error with Salt Stack 3005 _pygit2.GitError: error loading known_hosts Rolling back to v 1.11.1 fixes this issue
Given that pygit2 is probably the best option for Python developers building cross-platform Git applications When a Windows (or, to a lesser extent) Mac user wants to create an archive,...
Hi: this is my raw diff: ``` diff --git a/llvm/cmake/modules/FindZ3.cmake b/llvm/cmake/modules/FindZ3.cmake --- a/llvm/cmake/modules/FindZ3.cmake +++ b/llvm/cmake/modules/FindZ3.cmake @@ -75,7 +75,7 @@ unset(Z3_VERSION_STRING) # First, try to check it dynamically, by compiling a...
After executing a merge as suggested in the [docs](https://www.pygit2.org/merge.html#the-merge-method), a `git status` suggests that "you are still merging". Bash: ``` git init mergable cd mergable echo a > a git...
I am trying to clone private github repository using pygit2 module but getting the below error. ``` Traceback (most recent call last): File ".\test2.py", line 29, in repoClone = pygit2.clone_repository(repo_from_template.clone_url,...