Lines Matching refs:url

60              url = url.replace("\\\\", "\\").replace("\\", "/")
61 return url
64 + def check_unsafe_protocols(cls, url: str) -> None:
74 + match = cls.re_unsafe_protocol.match(url)
155 - def _clone_repo(cls, repo: 'Repo', url: str, path: PathLike, name: str, **kwargs: Any) -> 'Rep…
156 + def _clone_repo(cls, repo: 'Repo', url: str, path: PathLike, name: str,
160 :param url: url to clone from
165 - clone = git.Repo.clone_from(url, module_checkout_path, **kwargs)
166 + clone = git.Repo.clone_from(url, module_checkout_path, allow_unsafe_options=allow_unsafe_o…
173 def add(cls, repo: 'Repo', name: str, path: PathLike, url: Union[str, None] = None,
185 # _clone_repo(cls, repo, url, path, name, **kwargs):
186 - mrepo = cls._clone_repo(repo, url, path, name, env=env, **kwargs)
187 + mrepo = cls._clone_repo(repo, url, path, name, env=env, allow_unsafe_options=allow_uns…
189 # END verify url
203 (self.url, checkout_module_abspath, self.name))
205 … mrepo = self._clone_repo(self.repo, self.url, self.path, self.name, n=True, env=env,
256 scmd = 'set-url'
266 - def add_url(self, url: str, **kwargs: Any) -> 'Remote':
267 + def add_url(self, url: str, allow_unsafe_protocols: bool = False, **kwargs: Any) -> 'Remote':
268 """Adds a new url on current remote (special case of git remote set_url)
272 :param url: string being the URL to add as an extra remote URL
275 - return self.set_url(url, add=True)
276 + return self.set_url(url, add=True, allow_unsafe_protocols=allow_unsafe_protocols)
278 def delete_url(self, url: str, **kwargs: Any) -> 'Remote':
279 """Deletes a new url on current remote (special case of git remote set_url)
284 - def create(cls, repo: 'Repo', name: str, url: str, **kwargs: Any) -> 'Remote':
285 + def create(cls, repo: 'Repo', name: str, url: str, allow_unsafe_protocols: bool = False, *kwar…
293 - repo.git.remote(scmd, name, Git.polish_url(url), **kwargs)
294 + url = Git.polish_url(url)
296 + Git.check_unsafe_protocols(url)
297 + repo.git.remote(scmd, "--", name, url, **kwargs)
413 … def _clone(cls, git: 'Git', url: PathLike, path: PathLike, odb_default_type: Type[GitCmdObjectDB],
427 + Git.check_unsafe_protocols(str(url))
431 …proc = git.clone("--", multi, Git.polish_url(str(url)), clone_path, with_extended_output=True, as_…
461 def clone_from(cls, url: PathLike, to_path: PathLike, progress: Optional[Callable] = None,
469 … :param url: valid git url, see http://www.kernel.org/pub/software/scm/git/docs/git-clone.html#URLS
480 - return cls._clone(git, url, to_path, GitCmdObjectDB, progress, multi_options, **kwargs)
481 + return cls._clone(git, url, to_path, GitCmdObjectDB, progress, multi_options,