pygit2 icon indicating copy to clipboard operation
pygit2 copied to clipboard

Python bindings for libgit2

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

We are currently working with dvc for multiple projects and the `dvc exp run` leads to a pygit2 exception on a azure machine learning instance. This leads to problems since...

`to_unicode()` expects a non-NULL `x` argument (due to `strlen(x)`); however `self->encoding` _may_ be NULL, especially if built with `build_signature()` (i.e. if called from the `commit.author` property). As a result, any...

I ran into a strange behavior when trying to read a bare repo on my FreeBSD machine with pygit2: Info: - FreeBSD: 13.1 - libgit2-1.3.2 - pygit2: 1.10.0 ```sh >...

`submodule.head_id` returns garbage results when the submodule is not yet committed: ``` > git init > git submodule add https://github.com/pytest-dev/pytest > git -C pytest checkout 34a285986e456406b22b62aa563a64331f640e7f > python script.py #...

it seems pygit2 does not respect pkgconfig and PKG_CONFIG_PATH for locating an installed libgit2 ( and potentially upgraded vs any system one)

I'm trying to add a worktree with ``` _pygit2.add_worktree(name, path, _pygit2.lookup_reference(ref)) ``` ref is fetched using ```_pygit2.raw_listall_references()```. This works for bare git repo. In case of non-bare git repo, it...

I have a tool that pulls down and installs a decent sized repository. Cloning the repo is fast and works well, however fetching subsequent updates is extremely slow. trying to...

So pygit2 now comes with a pre-compiled libgit2. That's nice. But on Windows platforms it seems that SSH support is not enabled in that pre-compiled libgit2 version. Even if one...

packaging

When I try to provide a tag to the `checkout_branch` flag in `pygit2.clone_repository()`, it fails and is unable to find the reference. It would be nice to be able to...

Platform: linux x86_64 (ubuntu 20.04) Python: 3.9.12 Reproduction script: https://gist.github.com/howbazaar/b4e46806d0c5350623bf8d9ff49c6b4c works with pygit2 v1.7.1 fails with v1.7.2, 1.9.1 The script is a bit weird because it builds and runs the...