@@ -641,6 +641,7 @@ def set_url(
641
641
642
642
:param new_url: string being the URL to add as an extra remote URL
643
643
:param old_url: when set, replaces this URL with new_url for the remote
644
+ :param allow_unsafe_protocols: Allow unsafe protocols to be used, like ext
644
645
:return: self
645
646
"""
646
647
if not allow_unsafe_protocols :
@@ -660,6 +661,7 @@ def add_url(self, url: str, allow_unsafe_protocols: bool = False, **kwargs: Any)
660
661
multiple URLs for a single remote.
661
662
662
663
:param url: string being the URL to add as an extra remote URL
664
+ :param allow_unsafe_protocols: Allow unsafe protocols to be used, like ext
663
665
:return: self
664
666
"""
665
667
return self .set_url (url , add = True , allow_unsafe_protocols = allow_unsafe_protocols )
@@ -760,6 +762,7 @@ def create(cls, repo: "Repo", name: str, url: str, allow_unsafe_protocols: bool
760
762
:param repo: Repository instance that is to receive the new remote
761
763
:param name: Desired name of the remote
762
764
:param url: URL which corresponds to the remote's name
765
+ :param allow_unsafe_protocols: Allow unsafe protocols to be used, like ext
763
766
:param kwargs: Additional arguments to be passed to the git-remote add command
764
767
:return: New Remote instance
765
768
:raise GitCommandError: in case an origin with that name already exists"""
@@ -978,6 +981,8 @@ def fetch(
978
981
:param kill_after_timeout:
979
982
To specify a timeout in seconds for the git command, after which the process
980
983
should be killed. It is set to None by default.
984
+ :param allow_unsafe_protocols: Allow unsafe protocols to be used, like ext
985
+ :param allow_unsafe_options: Allow unsafe options to be used, like --upload-pack
981
986
:param kwargs: Additional arguments to be passed to git-fetch
982
987
:return:
983
988
IterableList(FetchInfo, ...) list of FetchInfo instances providing detailed
@@ -1027,6 +1032,8 @@ def pull(
1027
1032
:param refspec: see :meth:`fetch` method
1028
1033
:param progress: see :meth:`push` method
1029
1034
:param kill_after_timeout: see :meth:`fetch` method
1035
+ :param allow_unsafe_protocols: Allow unsafe protocols to be used, like ext
1036
+ :param allow_unsafe_options: Allow unsafe options to be used, like --upload-pack
1030
1037
:param kwargs: Additional arguments to be passed to git-pull
1031
1038
:return: Please see :meth:`fetch` method"""
1032
1039
if refspec is None :
@@ -1077,6 +1084,8 @@ def push(
1077
1084
:param kill_after_timeout:
1078
1085
To specify a timeout in seconds for the git command, after which the process
1079
1086
should be killed. It is set to None by default.
1087
+ :param allow_unsafe_protocols: Allow unsafe protocols to be used, like ext
1088
+ :param allow_unsafe_options: Allow unsafe options to be used, like --receive-pack
1080
1089
:param kwargs: Additional arguments to be passed to git-push
1081
1090
:return:
1082
1091
A ``PushInfoList`` object, where each list member
0 commit comments