mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-07-31 03:05:21 +00:00
This squashes all local history (768 commits) onto the scrubbed PR #90 baseline. Individual commits were lost during filter-repo corruption; the working tree content is preserved intact. Build: N/A (working tree state only)
10 lines
306 B
Python
10 lines
306 B
Python
from pathlib import Path
|
|
|
|
|
|
def resolve_repo_root(marker: str = ".git") -> Path:
|
|
cur = Path(__file__).resolve().parent.parent.parent
|
|
while cur.parent != cur:
|
|
if (cur / marker).exists():
|
|
return cur
|
|
cur = cur.parent
|
|
return Path(__file__).resolve().parent.parent.parent
|