diff options
Diffstat (limited to 'git/remote.py')
-rw-r--r-- | git/remote.py | 4 |
1 files changed, 1 insertions, 3 deletions
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) |