summaryrefslogtreecommitdiff
path: root/git/exc.py
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2022-12-29 08:09:28 +0100
committerGitHub <noreply@github.com>2022-12-29 08:09:28 +0100
commit678a8fe08dd466fcfe8676294b52887955138960 (patch)
treee0cb96633dc1c1cf8c362e2097140d75f60447f6 /git/exc.py
parentae6a6e4b088a35c0fc7b17940722c8a515f7bee7 (diff)
parentf4f2658d5d308b3fb9162e50cd4c7b346e7a0a47 (diff)
downloadgitpython-678a8fe08dd466fcfe8676294b52887955138960.tar.gz
Merge pull request #1521 from stsewd/block-insecure-options
Block insecure options and protocols by default
Diffstat (limited to 'git/exc.py')
-rw-r--r--git/exc.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/git/exc.py b/git/exc.py
index 22fcde0d..9b69a588 100644
--- a/git/exc.py
+++ b/git/exc.py
@@ -37,6 +37,14 @@ class NoSuchPathError(GitError, OSError):
"""Thrown if a path could not be access by the system."""
+class UnsafeProtocolError(GitError):
+ """Thrown if unsafe protocols are passed without being explicitly allowed."""
+
+
+class UnsafeOptionError(GitError):
+ """Thrown if unsafe options are passed without being explicitly allowed."""
+
+
class CommandError(GitError):
"""Base class for exceptions thrown at every stage of `Popen()` execution.