MCPcopy Index your code
hub / github.com/google/adk-python / _get_pull

Function _get_pull

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

Pulls the latest changes from a Git repository.

(repo_path: str)

Source from the content-addressed store, hash-verified

497
498
499def _get_pull(repo_path: str) -> str:
500 """Pulls the latest changes from a Git repository."""
501 pull_process = subprocess.run(
502 ["git", "pull"],
503 cwd=repo_path,
504 capture_output=True,
505 text=True,
506 check=True,
507 )
508 return pull_process.stdout.strip()
509
510
511def _get_clone(repo_url: str, repo_path: str) -> str:

Callers 1

clone_or_pull_repoFunction · 0.85

Calls 2

stripMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected