Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/DeepLabCut/DeepLabCut
/ find_repo_root
Function
find_repo_root
tools/test_selector.py:166–168 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
164
165
166
def
find_repo_root() -> Path:
167
out = _run_git([
"rev-parse"
,
"--show-toplevel"
], Path.cwd())
168
return
Path(out).resolve()
169
170
171
def
_validate_sha(label: str, sha: str) -> str:
Callers
1
main
Function · 0.70
Calls
1
_run_git
Function · 0.70
Tested by
no test coverage detected