From c8ae33b9314a7d3716827b5cb705a3cd0a2e4a46 Mon Sep 17 00:00:00 2001 From: Santos Gallegos Date: Tue, 27 Dec 2022 19:15:40 -0500 Subject: More tests --- git/remote.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'git/remote.py') diff --git a/git/remote.py b/git/remote.py index 520544b6..47a0115b 100644 --- a/git/remote.py +++ b/git/remote.py @@ -658,9 +658,7 @@ class Remote(LazyMixin, IterableObj): :param url: string being the URL to add as an extra remote URL :return: self """ - if not allow_unsafe_protocols: - Git.check_unsafe_protocols(url) - return self.set_url(url, add=True) + return self.set_url(url, add=True, allow_unsafe_protocols=allow_unsafe_protocols) def delete_url(self, url: str, **kwargs: Any) -> "Remote": """Deletes a new url on current remote (special case of git remote set_url) -- cgit v1.2.1