summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@proton.me>2022-12-23 20:19:52 -0500
committerSantos Gallegos <stsewd@proton.me>2022-12-23 20:40:06 -0500
commite6108c7997f5c8f7361b982959518e982b973230 (patch)
treed3ae83312f7253192302ec1c71763c64eaa1d364 /test
parent2625ed9fc074091c531c27ffcba7902771130261 (diff)
downloadgitpython-e6108c7997f5c8f7361b982959518e982b973230.tar.gz
Block unsafe options and protocols by default
Diffstat (limited to 'test')
-rw-r--r--test/test_repo.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_repo.py b/test/test_repo.py
index 53cae3cd..a937836f 100644
--- a/test/test_repo.py
+++ b/test/test_repo.py
@@ -38,7 +38,8 @@ from git import (
)
from git.exc import (
BadObject,
- UnsafeOptionsUsedError,
+ UnsafeOptionError,
+ UnsafeProtocolError,
)
from git.repo.fun import touch
from test.lib import TestBase, with_rw_repo, fixture
@@ -281,7 +282,7 @@ class TestRepo(TestBase):
self.assertTrue(Repo.unsafe_options("", ["--config protocol.foo"]))
def test_clone_from_forbids_helper_urls_by_default(self):
- with self.assertRaises(UnsafeOptionsUsedError):
+ with self.assertRaises(UnsafeOptionError):
Repo.clone_from("ext::sh -c touch% /tmp/foo", "tmp")
@with_rw_repo("HEAD")