GitPython
GitPython copied to clipboard
GitPython is a python library used to interact with Git repositories.
``` Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/git/cmd.py", line 114, in pump_stream handler(line) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/git/diff.py", line 570, in handle_process_output(proc, lambda byt: cls._handle_diff_line(byt, repo, index), File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/git/diff.py", line 557, in _handle_diff_line...
I can clone from a private repo by specifying the path to he `ssh` key, like this: ``` git_dir = "[email protected]:user_id/repo_name.git" save_at = './' Repo.clone_from(git_dir, save_at, env={"GIT_SSH_COMMAND": 'ssh -o StrictHostKeyChecking=no...
Although documentation resumed being built in 634151a, and the RTD theme and API Reference section were restored in 64ad585 (#1843), documentation for download did not resume being built, with 3.1.37...
Replacing the \s whitespace characters with normal spaces (" ") to prevent breaking on unicode whitespace characters (e.g., NBSP). Without this, if a branch name contains a unicode whitespace character...
GitPython classes contain a number of conceptually "protected" methods that can reasonably be called by code in subclasses (including in subclasses' overridden implementations of them) but not by arbitrary other...
[Read the Docs](https://about.readthedocs.com/) supports [pull request builds](https://docs.readthedocs.io/en/stable/pull-requests.html), where pull requests trigger preview builds that are published to a different domain and marked with a warning banner to prevent confusion, and...
`RemoteProgress._parse_progress_line` is conceptually a "protected" method: code outside GitPython may subclass `RemoteProgress` and override it with another implementation (which may also reasonably call the base class implementation). The method is...
Provides a mechanism to set a path to bash to use on Windows for executing commit hook commands. If none is set, the default behavior should be to prefer Git...
From time to time I get [an error like this](https://github.com/gitpython-developers/GitPython/actions/runs/6260962625/job/17000043153#step:10:918) on CI: ```text FAILED test/test_base.py::TestBase::test_with_rw_remote_and_rw_repo - git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) cmdline: git ls-remote daemon_origin stderr: 'fatal: unable...
*Note: This bug seems either mitigated or fixed in #1799, and the writeup here does not reflect those changes.* In b295c13, `Tree.cache` was documented in `CHANGES.rst` as removed, based on...