GitPython
GitPython copied to clipboard
GitPython is a python library used to interact with Git repositories.
The [API docs](https://gitpython.readthedocs.io/en/latest/reference.html) are great and detailed. However, the class `git.config.GitConfigParser` is only mentioned by name:  The link "Alias of `GitConfigParser" refers to the line above. It would be...
Refer to [the comment](https://github.com/python/cpython/issues/118761#issuecomment-2661504264), CPython is refactoring stdlib modules with lazy import, improving performance on loading. Unfortunately, this breaks the AutoInterrupt wrapper in GitPython, whose finalizer makes use of subprocess.Popen.terminate()....
https://github.com/gitpython-developers/GitPython/blob/a52722421e9afd333ed60be1ebf5a5aebb9a7e05/git/util.py#L467 see also this discussion: https://github.com/oxwhirl/pymarl/issues/113 The subject is, your code wants to look after a maybe or maybe not present program file of 'uname' in the same folder where...
Version 3.1.43 ### Description: I am trying to create or open a repo while also changing the .git default path to custom name like .custom_git. However, I a meeting an...
GitPython supports [parsing trailers](https://gitpython.readthedocs.io/en/stable/reference.html#git.objects.commit.Commit.trailers_dict), but not creating them. They can be included in a commit message via `$ git commit --message "Did a thing" --trailer "Issue: abc"` It would be...
Issue: Repo.Index.commit fails during execution of post-commit hook Root Cause: The .git config does not reside inside the submodule repository in the problematic setup. Repo/SubmoduleA$ cat .git gitdir: ../.git/modules/SubmoduleA However,...
the regex: https://github.com/gitpython-developers/GitPython/blob/6d09bb610932d6081da7a516f8e7215414d953e5/git/diff.py#L372 is not able to match the diff generated if this flag is enabled in `~/.gitconfig`: ``` [diff] mnemonicPrefix = true ``` because it is expecting `[ab]/` as...
## Issue Currently there is no direct way to run `git submodule deinit` in gitpython. My workaround is using `repo.git.submodule('deinit', ...)` to access git sm directly. ## Expected: Like remove,...
**Describe the bug** When executing repo.git.execute with string-type arguments on macOS, it throws a GitCommandNotFound exception: ``` Traceback (most recent call last): File "/Users/macuser/.pyenv/versions/3.12.2/lib/python3.12/site-packages/git/cmd.py", line 1262, in execute proc =...
the regex https://github.com/gitpython-developers/GitPython/blob/6d09bb610932d6081da7a516f8e7215414d953e5/git/config.py#L69 is missing `hasconfig:remote.*.url` from https://git-scm.com/docs/git-config#Documentation/git-config.txt-codehasconfigremoteurlcode which is covered in the git documentation.