Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix/add allow_unsafe_* params in docstrings + fix typo | FC Stegerman | 2023-01-08 | 1 | -0/+9 |
| | |||||
* | Fix Sphinx rendering errors | Stephan Creutz | 2022-12-29 | 1 | -4/+7 |
| | | | | | | | | These errors are mostly fixed by either adding blank lines or single spaces for Sphinx documentation key words. The commit solely includes documentation changes, no functional changes. | ||||
* | Merge pull request #1521 from stsewd/block-insecure-options | Sebastian Thiel | 2022-12-29 | 1 | -7/+63 |
|\ | | | | | Block insecure options and protocols by default | ||||
| * | More tests | Santos Gallegos | 2022-12-27 | 1 | -3/+1 |
| | | |||||
| * | Updates from review | Santos Gallegos | 2022-12-27 | 1 | -12/+9 |
| | | |||||
| * | Block unsafe options and protocols by default | Santos Gallegos | 2022-12-23 | 1 | -6/+67 |
| | | |||||
* | | Document PushInfoList | timski | 2022-12-29 | 1 | -6/+10 |
|/ | |||||
* | Fix command injection | Santos Gallegos | 2022-12-20 | 1 | -2/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add `--` in some commands that receive user input and if interpreted as options could lead to remote code execution (RCE). There may be more commands that could benefit from `--` so the input is never interpreted as an option, but most of those aren't dangerous. Fixed commands: - push - pull - fetch - clone/clone_from and friends - archive (not sure if this one can be exploited, but it doesn't hurt adding `--` :)) For anyone using GitPython and exposing any of the GitPython methods to users, make sure to always validate the input (like if starts with `--`). And for anyone allowing users to pass arbitrary options, be aware that some options may lead fo RCE, like `--exc`, `--upload-pack`, `--receive-pack`, `--config` (https://github.com/gitpython-developers/GitPython/pull/1516). Ref https://github.com/gitpython-developers/GitPython/issues/1517 | ||||
* | reformat according to 'black' configuration file. | Sebastian Thiel | 2022-05-18 | 1 | -85/+27 |
| | |||||
* | Run everything through 'black' | Sebastian Thiel | 2022-05-18 | 1 | -194/+344 |
| | | | | | That way people who use it won't be deterred, while it unifies style everywhere. | ||||
* | Low risk ReDoS vuln | theworstcomrade | 2022-02-20 | 1 | -1/+1 |
| | | | | https://huntr.dev/bounties/8549d81f-dc45-4af7-9f2a-2d70752d8524/ | ||||
* | Extend IterableList[PushInfo] instead of IterableList | Sjoerd Langkemper | 2021-11-13 | 1 | -17/+16 |
| | |||||
* | Specify type for PushInfoList.error | Sjoerd Langkemper | 2021-11-13 | 1 | -1/+1 |
| | |||||
* | Fix type handing on PushInfoList | Sjoerd Langkemper | 2021-11-13 | 1 | -3/+4 |
| | |||||
* | Rename exception to error, raise_on_error to raise_if_error | Sjoerd Langkemper | 2021-11-13 | 1 | -5/+5 |
| | |||||
* | Let remote.push return a PushInfoList | Sjoerd Langkemper | 2021-11-13 | 1 | -3/+20 |
| | | | | | | | List-like, so that it's backward compatible. But it has a new method raise_on_error, that throws an exception if anything failed to push. Related to #621 | ||||
* | Fix typing issues with delete_head and Remote.add | Russ Allbery | 2021-09-20 | 1 | -1/+3 |
| | | | | | | | | | | | | | | delete_head and Head.delete historically accept either Head objects or a str name of a head. Adjust the typing to match. This unfortunately requires suppressing type warnings in the signature of RemoteReference.delete, since it inherits from Head but does not accept str (since it needs access to the richer data of RemoteReference). Using assignment to make add an alias for create unfortunately confuses mypy, since it loses track of the fact that it's a classmethod and starts treating it like a staticmethod. Replace with a stub wrapper instead. | ||||
* | update tests and add a comment about different behaviour of 'push' vs 'fetch' | sroet | 2021-09-18 | 1 | -0/+2 |
| | |||||
* | reuse kill_after_timeout kwarg | sroet | 2021-09-18 | 1 | -11/+25 |
| | |||||
* | reset default timeout to None | sroet | 2021-09-18 | 1 | -5/+5 |
| | |||||
* | allow for timeout propagation | sroet | 2021-09-18 | 1 | -9/+15 |
| | |||||
* | Merge pull request #1318 from Yobmod/main | Dominic | 2021-09-09 | 1 | -2/+2 |
|\ | | | | | General fixes for next release | ||||
| * | type fixo | Yobmod | 2021-08-08 | 1 | -0/+944 |
| | | |||||
| * | add type check to conf_encoding (in thoery could be bool or int) | Yobmod | 2021-08-08 | 1 | -944/+0 |
| | | |||||
* | | Add encoding to utf-8 for fetch_info_lines; | f100024 | 2021-08-24 | 1 | -2/+2 |
|/ | | | | Add encoding to utf-8 for fetch_head_info; | ||||
* | Minor type fixes | Yobmod | 2021-08-02 | 1 | -2/+2 |
| | |||||
* | replace more TBDs wiht runtime types | Yobmod | 2021-07-31 | 1 | -5/+5 |
| | |||||
* | Rmv with_metaclass shim, make section constraint generic wrt its ↵ | Yobmod | 2021-07-24 | 1 | -1/+2 |
| | | | | configparser type | ||||
* | Replace all Typeguard with cast, revert update to typing-extensions==3.10.0 | Yobmod | 2021-07-24 | 1 | -6/+6 |
| | |||||
* | Change remaining type comments to py3.6+ types | Yobmod | 2021-07-19 | 1 | -6/+6 |
| | |||||
* | Make types in refs compatible with previous | Yobmod | 2021-07-19 | 1 | -22/+35 |
| | |||||
* | Add remote.url type | Yobmod | 2021-07-09 | 1 | -14/+7 |
| | |||||
* | Rmv Diffable assert, add Remoote.url property | Yobmod | 2021-07-09 | 1 | -0/+8 |
| | |||||
* | Try to distinguation git.diff module from diff.Diff.diff and ↵ | Yobmod | 2021-07-09 | 1 | -1/+1 |
| | | | | diff.Daffable.diff() | ||||
* | Add types to submodule.update() | Yobmod | 2021-07-06 | 1 | -4/+7 |
| | |||||
* | Type Traversable/list_traverse() better, make IterablleObj a protocol | Yobmod | 2021-06-30 | 1 | -0/+2 |
| | |||||
* | Type Traversable.traverse() better, start types of submodule | Yobmod | 2021-06-30 | 1 | -9/+7 |
| | |||||
* | replace cast()s with asserts in remote.py | Yobmod | 2021-06-25 | 1 | -5/+7 |
| | |||||
* | Add '?' to controlcharacter literal | Yobmod | 2021-06-25 | 1 | -2/+2 |
| | |||||
* | fix assert | Yobmod | 2021-06-25 | 1 | -1/+1 |
| | |||||
* | Add is_flatLiteral() Typeguard[] to remote.py | Yobmod | 2021-06-25 | 1 | -2/+9 |
| | |||||
* | Make IterableList generic and update throughout | Yobmod | 2021-06-24 | 1 | -15/+16 |
| | |||||
* | Don't raise on unknown line when parsing stale refs (#1262) | Sebastian Thiel | 2021-06-03 | 1 | -1/+1 |
| | |||||
* | flake8 fixes | yobmod | 2021-05-08 | 1 | -43/+54 |
| | |||||
* | Add types to Remote. init getattr exists | yobmod | 2021-05-08 | 1 | -3/+3 |
| | |||||
* | fix Repo forward ref | yobmod | 2021-05-03 | 1 | -1/+1 |
| | |||||
* | second pass of adding types | yobmod | 2021-05-03 | 1 | -15/+21 |
| | |||||
* | add types to _from_line() | yobmod | 2021-05-03 | 1 | -6/+7 |
| | |||||
* | add overloads to to_progress_instance() | yobmod | 2021-05-03 | 1 | -2/+18 |
| | |||||
* | change flags type to int | yobmod | 2021-05-03 | 1 | -4/+4 |
| |