pygit2
                                
                                 pygit2 copied to clipboard
                                
                                    pygit2 copied to clipboard
                            
                            
                            
                        Python bindings for libgit2
`Repository.create_reference` only accepts `str` and not `bytes`. This is because `Repository_create_reference_direct` in `repository.c` uses the `s` specifier for parsing that argument, which only accepts `str` and implicitly encodes it using...
I am trying to do something relatively simple which is just add and commit file changes to an existing repository as i would through the command line. The one complicating...
Follow up from #610 #790 and #893 General policy: - Do not implement `str()` - To get unicode string use `.text` - In `.text` use UTF-8 and *replace* (the rationale...
I'm not sure I'm using it right, but the following code throws `git_remote_fetch` into some sort of infinite loop in case the agent can't find an appropriate key. ```py import...
If a submodule has been added without the `--branch` option, accessing the `Submodule.branch` property raises a `RuntimeError`: ``` ❯❯❯ git init Initialized empty Git repository in /tmp/gregoire/tmp.R3p5f9ZTwD/.git/ ❯❯❯ git submodule...
`Index.__getitem__` fails on Python when you pass it `bytes`. ```python >>> import pygit2 >>> index = pygit2.Index() >>> index['foo'] Traceback (most recent call last): File "", line 1, in File...
`Signature_init` in `signature.c` currently uses the `s` format string for parsing the `email` argument. This is inconsistent between Python 2 and 3. On Python 2, it accepts either text (`unicode`)...
Looking at the code, I think the 'certificate' __init__ param is supposed to be named 'certificate_check' so that if it is set, it overrides the class function (I believe this...
Hi! I would like to apply a regular patch file, but without a git repo. Is it possible using this project? For instance: $ cd myproject/ $ patch < 0001-regular-fix.patch...
Steps to reproduce: ``` >>> import pygit2 >>> repo = pygit2.init_repository(".") >>> repo.remotes.create("origin", "https://github.com/libgit2/pygit2.git") >>> repo.remotes.add_fetch("origin", "refs/heads/master:refs/remotes/origin/master") >>> repo.remotes.add_fetch("origin", "refs/tags/*:refs/tags/*") >>> repo.remotes.delete("origin") _pygit2.GitError, entry is not unique due to being...