From 333654a342c85364524ac486cf98f9bd53bd2583 Mon Sep 17 00:00:00 2001 From: Steven Meisler Date: Mon, 23 Dec 2024 18:50:02 -0500 Subject: [PATCH] Update cubids.py --- cubids/cubids.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cubids/cubids.py b/cubids/cubids.py index 286ca0b3..ce66c3ad 100644 --- a/cubids/cubids.py +++ b/cubids/cubids.py @@ -410,7 +410,7 @@ def apply_tsv_changes(self, summary_tsv, files_tsv, new_prefix, raise_on_error=T if Path(from_file).exists(): # if using datalad, we want to git mv instead of mv if self.use_datalad: - move_ops.append(f"git mv {from_file} {to_file}") + move_ops.append(f"git mv {os.path.relpath(from_file,str(self.path))} {to_file}") else: move_ops.append(f"mv {from_file} {to_file}")