Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/DeepLabCut/DeepLabCut
/ _ensure_commit_exists
Function
_ensure_commit_exists
tools/test_selector.py:177–178 ·
view source on GitHub ↗
(sha: str, cwd: Path)
Source
from the content-addressed store, hash-verified
175
176
177
def
_ensure_commit_exists(sha: str, cwd: Path) -> None:
178
_run_git([
"cat-file"
,
"-e"
, f
"{sha}^{{commit}}"
], cwd)
179
180
181
def
_load_github_event() -> dict[str, Any]:
Callers
1
determine_diff_range
Function · 0.85
Calls
1
_run_git
Function · 0.70
Tested by
no test coverage detected