MCPcopy Index your code
hub / github.com/python/mypy / initialize_repo

Function initialize_repo

misc/incremental_checker.py:92–97  ·  view source on GitHub ↗
(repo_url: str, temp_repo_path: str, branch: str)

Source from the content-addressed store, hash-verified

90
91
92def initialize_repo(repo_url: str, temp_repo_path: str, branch: str) -> None:
93 print(f"Cloning repo {repo_url} to {temp_repo_path}")
94 execute(["git", "clone", repo_url, temp_repo_path])
95 if branch is not None:
96 print(f"Checking out branch {branch}")
97 execute(["git", "-C", temp_repo_path, "checkout", branch])
98
99
100def get_commits(repo_folder_path: str, commit_range: str) -> list[tuple[str, str]]:

Callers 1

test_repoFunction · 0.85

Calls 2

printFunction · 0.85
executeFunction · 0.70

Tested by 1

test_repoFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…