MCPcopy Create free account
hub / github.com/google/adk-python / _get_clone

Function _get_clone

contributing/samples/adk_team/adk_documentation/tools.py:511–519  ·  view source on GitHub ↗

Clones a Git repository to a local folder.

(repo_url: str, repo_path: str)

Source from the content-addressed store, hash-verified

509
510
511def _get_clone(repo_url: str, repo_path: str) -> str:
512 """Clones a Git repository to a local folder."""
513 clone_process = subprocess.run(
514 ["git", "clone", repo_url, repo_path],
515 capture_output=True,
516 text=True,
517 check=True,
518 )
519 return clone_process.stdout.strip()
520
521
522def _git_grep(

Callers 1

clone_or_pull_repoFunction · 0.85

Calls 2

stripMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected