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

When `repo.amend_commit(commit, branch, tree=tree)`, where `branch` is a `Reference/str`, the reference is update by libgit2 upon calling [git_commit_amend](https://libgit2.org/docs/reference/main/commit/git_commit_amend.html). However, the reference object `branch` still points to (`branch.peel()`) the original commit.

Caused by repository.c:1197 that defines it as optional. The square brackets there should probably be removed.

Hey, libgit [v1.8.0](https://github.com/libgit2/libgit2/releases/tag/v1.8.0) introduced OpenSSH support. This allows libgit to automatically find ssh keys and respect the ssh config which libssh2 does not (see https://github.com/libgit2/libgit2/issues/5640). Are there any plans on...

pytest output ```text ../venv-test-arm64/lib/pypy3.11/site-packages/pygit2/errors.py:67: GitError __________________ ERROR at setup of test_rebuild_treebuilder __________________ @pytest.fixture(scope='session', autouse=True) def global_git_config() -> None: # Do not use global config for better test reproducibility. # https://github.com/libgit2/pygit2/issues/989...

- Installing pygit2 (1.18.2): Failed PEP517 build of a dependency failed Backend subprocess exited when trying to invoke build_wheel | Command '['/var/folders/6r/fy0t_cnj33g9x3zb_mmjsjg80000gp/T/tmpl7yzzh9t/.venv/bin/python', '/Users/i34880/anacondapro/envs/batchapi_nogil/lib/python3.14/site-packages/pyproject_hooks/_in_process/_in_process.py', 'build_wheel', '/var/folders/6r/fy0t_cnj33g9x3zb_mmjsjg80000gp/T/tmpw79u7zqf']' returned non-zero exit status 1....

hello, we have noticed a problem with pygit2's Conflict Iterator with SUSE SL-16.0 linux: ref: https://build.opensuse.org/public/build/devel:languages:python/16.0/x86_64/python-pygit2/_log The `test_add_conflict` test fails: [ 24s] ______________________________ test_add_conflict _______________________________ [ 24s] [ 24s] conflict_ancestor,...

Hi, I am new to this kind of AI tools and have 0 knowledge or experience on it before, I just find it on google and just used it for...

The typing hint and docstring of Repository.resolve_refish says it returns a Commit object. Actually, it will return a Tag object if given a tag's hex oid. Is this the expected...

First, thank you for all the hard work you put in the bindings. Second, now that the latest revisions of git, and as far as I can tell libgit2 as...