From e6108c7997f5c8f7361b982959518e982b973230 Mon Sep 17 00:00:00 2001 From: Santos Gallegos Date: Fri, 23 Dec 2022 20:19:52 -0500 Subject: Block unsafe options and protocols by default --- test/test_repo.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test') 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") -- cgit v1.2.1