diff options
| author | Santos Gallegos <stsewd@proton.me> | 2022-12-27 19:15:40 -0500 |
|---|---|---|
| committer | Santos Gallegos <stsewd@proton.me> | 2022-12-27 19:15:40 -0500 |
| commit | c8ae33b9314a7d3716827b5cb705a3cd0a2e4a46 (patch) | |
| tree | a4d0450281eabaaae71877b2b1cbda47e0fbb0dd /git/remote.py | |
| parent | b92f01a3a38fc8e171d08575c69de9733811faa6 (diff) | |
| download | gitpython-c8ae33b9314a7d3716827b5cb705a3cd0a2e4a46.tar.gz | |
More tests
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) |
