pygit2
pygit2 copied to clipboard
Python bindings for libgit2
Very often I use `--depth 1` to not clone full repo, would be great to have it implemented.
# Motivation This `names()` iterator provides a big benefit in performance in my use case, where I want to test whether or not a remote exists for a large number...
Hi, I searched everywhere and I didn't find the equivalent of `git_remote_create_detached` in pygit2... May I ask if it's not implemented (and, in this case, if there is a way...
As discussed in upstream bug report saltstack/salt#38230 pygit2 tries to authenticate indefinite with wrong credentials instead of failing after two consecutive failures with same authentication token as specified by https://tools.ietf.org/html/rfc7235#section-3.1...
With libgit2/libgit2#6439 having been recently merged, this PR attempts adding support for push options to pygit2. While the basic code change (d387941a309804ac7bc198be4d34e4086204258f) is fairly trivial, I had to jump through...
pygit2 version: 1.14.1 Python version: 3.10.12 I'm trying to connect to the git server with via a ssh url. e.g. `remote.url is ssh://example.com:22/path/to/repo` When I'm trying to `remote.fetch(callbacks=callbacks)` (or any...
For git, use `git tag -s ` will create a GPG signed tag. Is there any recipe to create a signed tag with `pygit2` ? How?
There is `amend_commit` for `Repository` class. But it is not signed. How to amend a commit with GPG signature?
Upgrading to `1.14.0`, and cloning via HTTP auth (username + password) gives this stack trace: ``` File "/opt/conda/lib/python3.10/site-packages/pygit2/remotes.py", line 171, in ls_remotes self.connect(callbacks=callbacks, proxy=proxy) File "/opt/conda/lib/python3.10/site-packages/pygit2/remotes.py", line 120, in connect...
How can I test the connection to a git repository without cloning it? I have a UI where the user fills in the data for connecting to a git repository....