diff --git a/code/src/healthstatus/mounts.py b/code/src/healthstatus/mounts.py index fb9e76a8b..7c3637f2d 100644 --- a/code/src/healthstatus/mounts.py +++ b/code/src/healthstatus/mounts.py @@ -59,7 +59,18 @@ def name(self) -> str: @contextmanager def mount(self) -> Iterator[None]: - if self.update: + if not self.dataset_path.exists(): + log.info("Cloning dandi/dandisets to %s ...", self.dataset_path) + subprocess.run( + [ + "datalad", + "clone", + "git@github.com:dandi/dandisets.git", + os.fspath(self.dataset_path), + ], + check=True, + ) + elif self.update: log.info("Updating Dandisets dataset at %s ...", self.dataset_path) subprocess.run( [