GitPython icon indicating copy to clipboard operation
GitPython copied to clipboard

GitPython is a python library used to interact with Git repositories.

Results 171 GitPython issues
Sort by recently updated
recently updated
newest added

GitPython: 2.1.11 Python: 3.5 Git: 2.20.1 ```repo.remotes.orgin.pull()``` can lead to ```GitCommandError``` with no error message. Running ```git pull``` in the terminal leads to exit code 1 and following error message...

acknowledged
help wanted

``` python git.Repo(path).commit(bad_hash) ``` This raises `gitdb.exc.BadName` (which is not catchable with `git.exc.GitError` "Base class for all package exceptions"). Do I need to catch `gitdb` exceptions too? I don't have...

acknowledged
help wanted

On `import git` GitPython calls `git` 2 times, upon running [refresh](https://github.com/gitpython-developers/GitPython/blob/07657929bc6c0339d4d2e7e1dde1945199374b90/git/__init__.py#L68) method. Those calls have potential of being a bug source since the user has no way of providing environmental...

acknowledged
help wanted

This isn't mentioned in https://github.com/gitpython-developers/GitPython/blob/master/README.md#requirements or https://gitpython.readthedocs.io/en/stable/intro.html#requirements. It's sort of implied by the fact that GitPython is relying on `git` which in turn relies on `ssh`, but would be useful...

acknowledged
help wanted

I'm trying to add files one by one to my git repo (with custom git messages depending on some conditions) the problem is GitPython creates the commit but also adds...

As described in this issue: #344 . Since it's now almost 3 years later, it would be great if support for additional worktrees can be added.

acknowledged
help wanted

When a file is added, I think that `a_path` should be *None* and `b_path` should be equal to the name of the added file. This is the case when we...

acknowledged
help wanted

`repo.create_head(branch_name)` would be more intuitive as `repo.create_branch(branch_name)` or `repo.branch.create(branch_name)` Merging a branch would be more intuitive as `repo.merge(from=branch_name)` instead of ``` # prepare a merge master = cloned_repo.heads.master # right-hand...

enhancement
help wanted

I am using GitPython 2.0.2. While having kill_after_timeout in the pull() e.g. g.pull(kill_after_timeout=10) Before the process killing, there were four processes running: 1. git pull 2. git fetch 3. git-remote-http...

acknowledged
help wanted
tag.leaks

The traceback below shows that git for windows has become pickier in the latest release (2.22.0). It appears it will no longer accept git submodule -b add . This works...

acknowledged
help wanted