summaryrefslogtreecommitdiff
path: root/git/exc.py
Commit message (Collapse)AuthorAgeFilesLines
* Block unsafe options and protocols by defaultSantos Gallegos2022-12-231-2/+6
|
* Forbid unsafe protocol URLs in Repo.clone{,_from}()Steve Kowalik2022-12-231-0/+4
| | | | | | | | | Since the URL is passed directly to git clone, and the remote-ext helper will happily execute shell commands, so by default disallow URLs that contain a "::" unless a new unsafe_protocols kwarg is passed. (CVE-2022-24439) Fixes #1515
* reformat according to 'black' configuration file.Sebastian Thiel2022-05-181-3/+1
|
* Run everything through 'black'Sebastian Thiel2022-05-181-29/+49
| | | | | That way people who use it won't be deterred, while it unifies style everywhere.
* Fix #1284: strip usernames from URLs as well as passwordsGlenn Matthews2022-05-041-3/+4
|
* Revert "Replace wildcard imports with concrete imports"Trym Bremnes2021-10-031-1/+2
| | | | | | | | | | | This reverts commit 53d94b8091b36847bb9e495c76bb5a3ec2a2fdb5. The reason for the revert is that the commit in question introduced a regression where certain modules, functions and classes that were exposed before were no longer exposed. See https://github.com/gitpython-developers/GitPython/pull/1352#issuecomment-932757204 for additional information.
* Replace wildcard imports with concrete importsTrym Bremnes2021-10-011-2/+1
| | | | | | | All `from <module> import *` has now been replaced by `from <module> import X, Y, ...`. Contributes to #1349
* add types to index.fun.pyYobmod2021-05-171-4/+7
|
* Add remaining types to IndexFile ._preprocess_add_items() to .diff()Yobmod2021-05-161-2/+2
|
* Add types to cmd.py Gityobmod2021-05-131-6/+7
|
* Add types to cmd.py AutoInterruptyobmod2021-05-121-1/+1
|
* add initial types to remote.pyyobmod2021-05-031-6/+11
|
* add types to git.compat and git.diffyobmod2021-03-021-4/+7
|
* add types to git.db and git.excyobmod2021-03-011-12/+27
|
* Remove now unnecessary explicit Unicode string literal prefixesHarmon2020-02-251-11/+11
|
* Remove and replace compat.string_typesHarmon2020-02-081-2/+2
|
* Remove and replace compat.UnicodeMixinHarmon2020-02-081-3/+3
|
* silence PYL-W0614Anil Khatri2019-10-221-1/+1
|
* silence PYL-W0401Anil Khatri2019-10-221-1/+1
|
* BF: crazy tests ppl pass an object for status... uff -- catch TypeError tooYaroslav Halchenko2017-11-271-1/+1
|
* RF: primarily flake8 lints + minor RF to reduce duplication in PATHEXTYaroslav Halchenko2017-11-271-1/+1
| | | | | I did keep some "bare" except with catch all Exception: , while tried to disable flake8 complaints where clearly all exceptions are to be catched
* Add base class for package exceptions.Konstantin Popov2017-05-291-6/+10
|
* Spelling fixesVille Skyttä2017-03-091-1/+1
|
* Fix some typosSantiago Castro2016-10-201-1/+1
|
* src: No PyDev warningsKostis Anagnostopoulos2016-10-041-1/+1
| | | | | | | | + Mark all unused vars and other non-pep8 (PyDev) warnings + test_utils: + enable & fix forgotten IterableList looped path. + unittestize all assertions. + remote: minor fix progress dispatching unknown err-lines
* remote, #519: INCOMPLETE FIX-2 double-decoding push-infosKostis Anagnostopoulos2016-09-281-1/+2
| | | | + Unicode PY2/3 issues fixed also in pump stream func.
* Proc, #519: Rework error-exc msgs & log thread-pumps errorsKostis Anagnostopoulos2016-09-281-24/+48
| | | | | + No WindowsError exception. + Add `test_exc.py` for unicode issues. + Single-arg for decoding-streams in pump-func.
* Win, hook, #519: Consume Hook Popen-proc out of GILKostis Anagnostopoulos2016-09-281-12/+9
| | | | | | | | + HookException thrown on Popen, and were missed on Windows. + No SHELL on Popen?? + Minor fixes: + Try harder to delete trees - no remorses. + Simplify exception reprs. + Unittest-ize test_index assertions.
* PY2, #519: FIX GitCommandError.tostr() encoding issueKostis Anagnostopoulos2016-09-281-8/+7
| | | | + PY3 means "PY3 or later" (TODO: fix also for *gitdb* project).
* fix(repo): fail loudly if worktrees are usedSebastian Thiel2015-08-291-0/+4
| | | | | | | | | | | | | | | As GitPython is in maintenance mode, there will be no new features. However, I believe it's good idea to explicitly state we do not support certain things if this is the case. Therefore, when worktrees are encountered, we will throw an specific exception to indicate that. The current implementation is hacky to speed up development, and increases the risk of failing due to false-positive worktree directories. Related to #344
* fix(cmd): throw GitCommandNotFoundError ...Sebastian Thiel2015-04-081-0/+6
| | | | | | | ... if it is not found. Previously, especially on windows, this wasn't explicit. Fixes #248, affects #126
* Greatly improved possible safety of Submodule.update(), which is used by ↵Sebastian Thiel2015-01-201-0/+11
| | | | | | | | | | | | default. Previously, the implementation would gladly reset new commits in submodules, and/or reset a dirty working tree. Now the new force_reset/force flag has to be specified explicitly to get back to the old behaviour. All submodule tests except for one are working.
* IndexFile.commit() now runs pre-commit and post-commit hooks.Sebastian Thiel2015-01-121-5/+15
| | | | | | | | | However, it does so only on posix. The test-case will run on posix only as well. Please note that in theory, even on windows we will attempt to run hooks, even though I am not sure that this will actually work. Fixes #81
* test_repo worksSebastian Thiel2015-01-061-2/+4
|
* test_remote worksSebastian Thiel2015-01-061-4/+6
| | | | | | | And I have to wonder why git-daemon serves under py2.7, but really wants receive-pack to be allowed under 3.4. Maybe it's a repository override which for some reason doesn't work in py3.4 ? Maybe because the change is not flushed ?
* Removed unnecessary (non-gitpython) tests and fixed flake80.3.3Sebastian Thiel2015-01-041-1/+1
|
* pep8 linting (trailing whitespace)Antoine Musso2014-11-161-1/+1
| | | | W291 trailing whitespace
* pep8 linting (whitespace before/after)Antoine Musso2014-11-161-1/+1
| | | | | | | | | | | | | E201 whitespace after '(' E202 whitespace before ')' E203 whitespace before ':' E225 missing whitespace around operator E226 missing whitespace around arithmetic operator E227 missing whitespace around bitwise or shift operator E228 missing whitespace around modulo operator E231 missing whitespace after ',' E241 multiple spaces after ',' E251 unexpected spaces around keyword / parameter equals
* pep8 linting (blank lines expectations)Antoine Musso2014-11-161-0/+10
| | | | | | E301 expected 1 blank line, found 0 E302 expected 2 blank lines, found 1 E303 too many blank lines (n)
* pep8 linting (whitespaces)Antoine Musso2014-11-161-3/+3
| | | | | | | | | | | W191 indentation contains tabs E221 multiple spaces before operator E222 multiple spaces after operator E225 missing whitespace around operator E271 multiple spaces after keyword W292 no newline at end of file W293 blank line contains whitespace W391 blank line at end of file
* GitRunCommand exception can store stdout output too.Tamas Pal2014-11-051-3/+7
| | | | | | | Some git commands, like git merge outputs their problems onto stdout, instead of stderr, which will be thrown away by the current setup. This change allows the GitPython commands to store the stdout's value too, in case of error.
* tabs to 4 spaces - this won't make integrating the patches easier, but it's ↵Sebastian Thiel2014-02-091-36/+36
| | | | probably a good idea to go a little more pep8 (and fix sins of my youth ;) )
* Moved everything into the git subdirectory - some tests still need to be ↵Sebastian Thiel2010-11-251-0/+58
adjusted