GitPython
GitPython copied to clipboard
GitPython is a python library used to interact with Git repositories.
Hi, I've faced a problem on Windows with file/directory removal with `shutil.rmtree()`. The problem, by itself, is not new and already has known solutions, including `git.util.rmtree()`. However, just using this...
I am having a issue with getting the date from a git commit. I keep getting this error: ``` Traceback (most recent call last): File "/code/manage.py", line 19, in main()...
``` user@host:~/src$ git clone https://github.com/gitpython-developers/GitPython.git Cloning into 'GitPython'... remote: Enumerating objects: 14646, done. remote: Total 14646 (delta 0), reused 0 (delta 0), pack-reused 14646 Receiving objects: 100% (14646/14646), 7.65 MiB...
# Environmental Information Windows10 Python3.8 GitPython 3.1.24 # Error 1 ## Chinese path: `git.Repo.clone_from(url="[email protected]:xun-mi-git/test-x.git", to_path="C:\\Users\\asus\\3D Objects\\个人项目\\test")` ## Error message ```python Exception in thread Thread-6: Traceback (most recent call last): File...
The following is from a question on [StackOverflow](https://stackoverflow.com/questions/61613647/gitpython-getting-the-latest-tag-of-a-remote-repo/64423285#64423285) I've asked some time ago: I'd like to be able to check what's the latest tag for a given repo (I'm using...
This is an excerpt of [Hopic](https://github.com/tomtom-international/hopic)'s pytest run in the `python:3.10.0rc2-slim` docker image. With `python:3.10.0rc1-slim` this same error does not occur. I don't have the time right now to fully...
we have an obscure use case where there is a symlink to a submodule ```shell (git-annex)hopa:~/.tmp/datalad_temp_test_bf1886qhfzdeik[master]git $> git submodule bf0dbc349765f2d6c4db485c13eaa78e69e903da sub (heads/master) (dev) 1 12992 [1].....................................:Mon 08 Jul 2019 12:13:57...
I'm trying to package your module as rpm packag. So I'm using typical in such case build, install and test cycle used on building package from non-root account: - "setup.py...
Version: 2.1.5 Python Version: 3.6.0 Reproducing steps: I have the following python script: ``` import git repo = git.Repo('/tmp/gittest') commit1 = repo.commit('master') commit2 = repo.commit('master^') diffs = commit1.diff(commit2) diff =...
When I do this: ``` >>> import git >>> r = git.Repo('.') >>> from pprint import pprint >>> pprint(r.active_branch.commit.diff('master', create_patch=True)[0].diff.decode('utf-8').split('\n')) ``` Then I see the same first file as when...