Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #1198 from RyaxTech/replace-password-in-uri-by-stars | Sebastian Thiel | 2021-03-19 | 3 | -13/+47 |
|\ | | | | | Replace password in URI by stars if present to avoid leaking secrets in logs | ||||
| * | Use continue instead of raising error | Michael Mercier | 2021-03-18 | 1 | -2/+2 |
| | | |||||
| * | Use copy and not inplace remove password + working case test | Michael Mercier | 2021-03-16 | 2 | -10/+12 |
| | | |||||
| * | Add more test and remove password also from error logs | Michael Mercier | 2021-03-15 | 2 | -9/+8 |
| | | |||||
| * | Put remove password in the utils and use it also in cmd.execute | Michael Mercier | 2021-03-15 | 3 | -14/+35 |
| | | |||||
| * | Use urllib instead of custom parsing | Michael Mercier | 2021-03-15 | 1 | -4/+10 |
| | | |||||
| * | Replace password in URI by stars if present + test | Michael Mercier | 2021-03-11 | 1 | -1/+7 |
| | | |||||
| * | Merge pull request #1188 from Yobmod/main | Sebastian Thiel | 2021-03-03 | 2 | -0/+6 |
| |\ | | | | | | | Drop python 3.4, prep for adding types | ||||
| * | | Use UTF-8 encoding when getting information about packed refs | Klyahin Aleksey | 2021-03-03 | 1 | -1/+1 |
| | | | |||||
* | | | remove comment | Sebastian Thiel | 2021-03-17 | 1 | -2/+0 |
| | | | |||||
* | | | chane HEAD typing to SymbolicReference | Yobmod | 2021-03-16 | 1 | -1/+1 |
| | | | |||||
* | | | fixes from #1202 | Yobmod | 2021-03-16 | 1 | -12/+16 |
| | | | |||||
* | | | add types to git.__init__, compat, db, diff, exc, util | Yobmod | 2021-03-16 | 10 | -215/+320 |
| | | | |||||
* | | | rebase on master | Yobmod | 2021-03-16 | 1 | -1/+8 |
| | | | |||||
* | | | Combined commits to add types to base.py and fun.py | yobmod | 2021-03-04 | 3 | -125/+198 |
| |/ |/| | |||||
* | | move cmd.py types to another branch, mark typing import as unused | yobmod | 2021-02-28 | 2 | -10/+7 |
| | | |||||
* | | add py.typed, mypy.ini and git/types.py | yobmod | 2021-02-28 | 2 | -0/+6 |
| | | |||||
* | | drop py3.4 support | yobmod | 2021-02-28 | 1 | -4/+7 |
|/ | |||||
* | add replace method to git.Commit | Lars Kellogg-Stedman | 2021-02-15 | 1 | -7/+36 |
| | | | | | | | | | | | This adds a replace method to git.Commit. The replace method returns a copy of the Commit object with attributes replaced from keyword arguments. For example: >>> old = repo.head.commit >>> new = old.replace(message='This is a test') closes #1123 | ||||
* | version bump3.1.13 | Sebastian Thiel | 2021-02-09 | 1 | -0/+0 |
| | |||||
* | Fix inheritance issue at commit.iter_items | Yuri Volchkov | 2021-02-05 | 1 | -1/+1 |
| | | | | | | | The iterator used to yield Commit() objects, which does not play well with inheritance. Yield cls() instead. Signed-off-by: Yuri Volchkov <yuri@volch.org> | ||||
* | fix universal_newlines TypeError | x-santiaga-x | 2021-01-28 | 1 | -1/+3 |
| | | | | Fixes #1116 | ||||
* | Make git.cmd.Git.CatFileContentStream iterable | Hex052 | 2021-01-17 | 1 | -0/+3 |
| | | | Add __next__ method to git.cmd.Git.CatFileContentStream, so it can actually be used as an iterable | ||||
* | fix(fetch): use the correct FETCH_HEAD from within a worktree | Giel van Schijndel | 2021-01-14 | 1 | -3/+2 |
| | | | | | | | | FETCH_HEAD is one of the symbolic references local to the current worktree and as such should _not_ be looked up in the 'common_dir'. But instead of just hard coding the "right thing" (git_dir) lets defer this to the SymbolicReference class which already contains this knowledge in its 'abspath' property. | ||||
* | fix flake | Sebastian Thiel | 2021-01-08 | 1 | -0/+1 |
| | |||||
* | First attempt to fix failing test of #1103fix-1103 | Sebastian Thiel | 2021-01-07 | 1 | -4/+10 |
| | | | | | | | | | | | | However, the test asserts on the provided context to be correct, which is hard to do in this branch while it's easy to doubt the value of this. Lastly, there seems to be no way to ignore errors in `git` without muting all output, which is in fact parsed. Maybe it's possible to ignore errors while parsing the new kind of error message. | ||||
* | Fix handle_diff_line for -z option. | Martin Liska | 2021-01-06 | 1 | -49/+49 |
| | |||||
* | try fixing up test fixtures and implementation | Sebastian Thiel | 2021-01-06 | 1 | -2/+2 |
| | |||||
* | Add '-z' on top of '--raw' to avoid path name mangling | Sebastian Thiel | 2021-01-06 | 1 | -1/+2 |
| | | | | | | | Authored based on https://github.com/gitpython-developers/GitPython/issues/1099#issuecomment-754606044 Fixes #1099 | ||||
* | fix universal_newlines TypeError | Jim Wisniewski | 2020-12-30 | 1 | -3/+4 |
| | |||||
* | docs: fix simple typo, repostory -> repository | Tim Gates | 2020-12-25 | 1 | -1/+1 |
| | | | | | | There is a small typo in git/repo/base.py. Should read `repository` rather than `repostory`. | ||||
* | Added ability to define git environment in submodule add/update methods | Igor Solovey | 2020-11-19 | 1 | -4/+16 |
| | |||||
* | change decode type and add replace flag | Davide Spadini | 2020-11-10 | 1 | -1/+1 |
| | |||||
* | Fix default actor name handling | Athos Ribeiro | 2020-10-23 | 1 | -1/+1 |
| | | | | | | | | In c96476b, the new default_name nested function does not contain a retun statement. This leads to an issue when the environment variables are not present, where the actor name would not be set. Signed-off-by: Athos Ribeiro <athos@redhat.com> | ||||
* | Get system user id in a lazy manner | Athos Ribeiro | 2020-10-22 | 1 | -4/+12 |
| | | | | | | | | | | | | | | | | Calling getpass.getuser may lead to breakage in environments where there is no entries in the /etc/passwd file for the current user. Setting the environment variables for the git user configurations should prevents GitPython from using values from /etc/passwd. However, doing so will not prevent reading /etc/passwd and looking for an entry with the current user UID. This patch changes the behavior described above so GitPython will perform a lazy evaluation of /etc/passwd, only doing so when the environment variables for the git user configuration are not available. Signed-off-by: Athos Ribeiro <athos@redhat.com> | ||||
* | Do not break convention when updating sys.path | Xavier Verges | 2020-10-05 | 1 | -1/+1 |
| | |||||
* | rename sublist to subset | Sagi Shadur | 2020-09-29 | 1 | -1/+1 |
| | |||||
* | Rename get_ignored to ignored and fix the documentation | Sagi Shadur | 2020-09-29 | 1 | -2/+2 |
| | |||||
* | Find paths ignored in .gitignore | Sagi Shadur | 2020-09-29 | 1 | -0/+13 |
| | |||||
* | git/repo/base.py: is_dirty(): Fix pathspec handling | Arnaud Patard | 2020-09-28 | 1 | -1/+1 |
| | | | | | | | | | | | | | It's possible to specify a pathspec (eg :!foo) to git diff/status/... but it currently fails with: git.exc.GitCommandError: Cmd('/usr/bin/git') failed due to: exit code(128) cmdline: /usr/bin/git diff --abbrev=40 --full-index --raw :!foo stderr: 'fatal: ambiguous argument ':!foo': unknown revision or path not in the working tree. Add missing '--' to the arguments to fix this ambiguity Signed-off-by: Arnaud Patard <apatard@hupstream.com> | ||||
* | Ensure that detached HEAD does not raise when comparing branch name. | Jeremy Retailleau | 2020-09-03 | 1 | -1/+7 |
| | |||||
* | Reformat code to remove unnecessary indentation | Jeremy Retailleau | 2020-09-03 | 1 | -29/+31 |
| | |||||
* | Add missing blank line | Jeremy Retailleau | 2020-09-02 | 1 | -0/+1 |
| | |||||
* | Add missing rules to match hierarchy path | Jeremy Retailleau | 2020-09-02 | 1 | -12/+16 |
| | |||||
* | Fix logic to properly compare glob pattern to value | Jeremy Retailleau | 2020-09-02 | 1 | -15/+16 |
| | |||||
* | Add method to retrieve all possible paths to include | Jeremy Retailleau | 2020-09-02 | 1 | -1/+36 |
| | |||||
* | Add reference to repository to config. | Jeremy Retailleau | 2020-09-02 | 2 | -4/+8 |
| | | | | | | | This is necessary when working with conditional include sections as it requires the git directory or active branch name. https://git-scm.com/docs/git-config#_conditional_includes | ||||
* | Update check method to find all includes | Jeremy Retailleau | 2020-09-02 | 1 | -1/+4 |
| | |||||
* | Add Regex to match content of "includeIf" section | Jeremy Retailleau | 2020-09-02 | 1 | -0/+3 |
| | |||||
* | accept datetime instances as dates | Alba Mendez | 2020-08-31 | 1 | -0/+5 |
| | | | | | | There's no easy way to re-create a commit (i.e. for rewriting purposes), because dates must be formatted as strings, passed, then parsed back. This patch allows parse_date() to accept datetime instances, such as those produced by from_timestamp() above. |