From f14ab1b0b3c3b570a3963857905a090f3187e2d3 Mon Sep 17 00:00:00 2001 From: Nikhil Chandra Date: Wed, 18 Sep 2024 10:51:45 -0500 Subject: [PATCH] Added command to unlock annex repo to restore files from symbolic links. --- neo/utils/datasets.py | 1 + 1 file changed, 1 insertion(+) diff --git a/neo/utils/datasets.py b/neo/utils/datasets.py index 5d9527551..1f4893853 100644 --- a/neo/utils/datasets.py +++ b/neo/utils/datasets.py @@ -64,6 +64,7 @@ def download_dataset(repo=default_testing_repo, remote_path=None, local_folder=N # make sure git repo is in clean state repo = dataset.repo repo.call_git(["checkout", "--force", "master"]) + repo.unlock(remote_path) dataset.update(merge=True) else: dataset = datalad.api.install(path=local_folder, source=repo)