summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Assure CWD is readable after acquiring itFix-#1334Sebastian Thiel2021-09-051-0/+2
| | | | Fixes #1334
* Add encoding to utf-8 for fetch_info_lines;f1000242021-08-241-2/+2
| | | | Add encoding to utf-8 for fetch_head_info;
* Use the Git class type definition within Repo classmethodsMichael Mulich2021-08-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow the GitCommandWrapperType definition to be used within the Repo classmethods. This change follows the intended purpose as stated in the code, "Subclasses may easily bring in their own custom types by placing a constructor or type here." The usecase that prompted this change has to do with `GIT_SSH_COMMAND`. The goal is to setup a custom `Git` class with knowledge of the value, something like as follows ```python from git import Git as BaseGit, Repo as BaseRepo class Git(BaseGit): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) # For example, assign the SSH command using the current flask # app's configured setting. self.update_environment(GIT_SSH_COMMAND=current_app.config['GIT_SSH_COMMAND']) class Repo(BaseRepo): GitCommandWrapperType = _Git ``` With this change, the above example will allow the developer to use `Repo.clone_from(...)` with the indended outcome. Otherwise the developer will have two differing result when using `Repo(...)` vs `Repo.clone_from(...)`.
* overhaul CONTIRIBUTING.mdSebastian Thiel2021-08-181-8/+7
| | | | Thanks to #1322
* Don't fail on import if the working dir isn't valid (#1319)Sebastian Thiel2021-08-121-1/+4
|
* Merge pull request #1314 from eric-wieser/patch-1Dominic2021-08-062-13/+35
|\ | | | | Do not call get_user_id if it is not needed
| * Update test_util.pyEric Wieser2021-08-041-1/+4
| |
| * Try a better testEric Wieser2021-08-041-3/+18
| |
| * Fix testEric Wieser2021-08-031-9/+9
| |
| * Merge branch 'gitpython-developers:main' into patch-1Eric Wieser2021-08-031-2/+2
| |\ | |/ |/|
* | Merge pull request #1315 from eric-wieser/patch-2Dominic2021-08-031-2/+2
|\ \ | | | | | | Fix trailing whitespace and incorrect overload
| * | Fix trailing whitespace and incorrect overloadEric Wieser2021-08-031-2/+2
|/ /
| * Use get instead of get_valueEric Wieser2021-08-031-1/+1
| | | | | | This won't try and do something silly like convert `username=1` to a number.
| * Merge branch 'main' into patch-1Eric Wieser2021-08-0322-224/+252
| |\ | |/ |/|
* | Add overload to get_value()Dominic2021-08-031-6/+5
| |
* | Merge pull request #1311 from Yobmod/mainDominic2021-08-0322-218/+247
|\ \ | | | | | | Drop 3.6, increase type strictness
| * | Add Typing :: Typed to setup.pyYobmod2021-08-032-1/+2
| | |
| * | Improve type of repo.currently_rebasing_on()Yobmod2021-08-021-2/+2
| | |
| * | Improve type of repo.blame_incremental()Yobmod2021-08-021-9/+9
| | |
| * | Choose TypedDict!Yobmod2021-08-021-37/+32
| | |
| * | Test Dataclass in repo.base.blame() 6Yobmod2021-08-021-6/+5
| | |
| * | Test Dataclass in repo.base.blame() 5Yobmod2021-08-021-30/+37
| | |
| * | Test Dataclass in repo.base.blame() 4Yobmod2021-08-021-11/+10
| | |
| * | Test TypedDict in repo.base.blame() 1Yobmod2021-08-021-13/+14
| | |
| * | Test TypedDict in repo.base.blame() 2Yobmod2021-08-021-44/+36
| | |
| * | Test Dataclass in repo.base.blame() 3Yobmod2021-08-021-13/+14
| | |
| * | Test Dataclass in repo.base.blame() 2Yobmod2021-08-021-2/+2
| | |
| * | Test Dataclass in repo.base.blame()Yobmod2021-08-022-38/+67
| | |
| * | Test trailing comma in args (>py3.6?)Yobmod2021-08-021-3/+5
| | |
| * | Merge branch 'main' of https://github.com/Yobmod/GitPythonYobmod2021-08-022-0/+3
| |\ \
| | * \ Merge branch 'gitpython-developers:main' into mainDominic2021-08-022-0/+3
| | |\ \ | |_|/ / |/| | |
| * | | Test new union syntax (Pep604)Yobmod2021-08-021-1/+1
| |/ /
| * | Minor type fixesYobmod2021-08-022-5/+6
| | |
| * | Add __future__.annotations to repo/base.pyYobmod2021-08-026-14/+18
| | |
| * | Fix parse_date typing 7Yobmod2021-08-022-567/+3
| | |
| * | Fix parse_date typing 6Yobmod2021-08-022-1/+567
| | |
| * | Fix parse_date typing 5Yobmod2021-08-021-2/+7
| | |
| * | Fix parse_date typing 4Yobmod2021-08-021-12/+7
| | |
| * | Fix parse_date typing 3Yobmod2021-08-021-6/+4
| | |
| * | Fix parse_date typing 2Yobmod2021-08-021-1/+3
| | |
| * | Fix parse_date typingYobmod2021-08-021-3/+5
| | |
| * | Add __future__.annotations to cmd.py2Yobmod2021-08-021-3/+3
| | |
| * | Add __future__.annotations to cmd.pyYobmod2021-08-021-7/+7
| | |
| * | rmv 3.6 READMEYobmod2021-08-023-53/+51
| | |
| * | rmv 3.6 from setup.pyYobmod2021-08-024-10/+12
| | |
| * | rmv 3.6 from CI matrixYobmod2021-08-023-5/+4
| | |
| * | increase mypy strictness (warn unused ignored and warn unreachable)Yobmod2021-08-0210-23/+29
| | |
| * | Merge branch 'main' of https://github.com/Yobmod/GitPythonYobmod2021-08-020-0/+0
| |\ \
| | * \ Merge branch 'gitpython-developers:main' into mainDominic2021-08-020-0/+0
| | |\ \
| * | | | increase mypy strictness (warn unused ignored)Yobmod2021-08-025-13/+14
| |/ / /