avoid looking for a tracker before config exists
Some checks failed
Ruff / ruff (push) Waiting to run
Mypy / mypy (push) Failing after 1m8s
Pytest / pytest (3.12) (push) Successful in 49s
Pytest / pytest (3.13) (push) Has been cancelled
Pytest / pytest (3.14) (push) Has been cancelled

This commit is contained in:
Justus Kuhlmann 2025-12-04 12:36:41 +01:00
commit 821bc14f4b
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6
2 changed files with 4 additions and 5 deletions

View file

@ -36,8 +36,7 @@ def save(path: str, message: str, files: Optional[list[str]]=None) -> None:
raise ValueError(f"Tracker {tracker} is not supported.")
def init(path: str) -> None:
tracker = get_tracker(path)
def init(path: str, tracker: str='datalad') -> None:
if tracker == 'datalad':
dl.create(path)
elif tracker == 'None':