From 7bfe67a20f4e4d258c318d537a0efbe231af4846 Mon Sep 17 00:00:00 2001 From: Konstantin Chupin Date: Tue, 12 Dec 2023 16:01:50 +0100 Subject: [PATCH] Terrarium: fix cross-repo git mv check --- terrarium/dl_repmanager/dl_repmanager/fs_editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terrarium/dl_repmanager/dl_repmanager/fs_editor.py b/terrarium/dl_repmanager/dl_repmanager/fs_editor.py index 3d530dbec..4717bd63f 100644 --- a/terrarium/dl_repmanager/dl_repmanager/fs_editor.py +++ b/terrarium/dl_repmanager/dl_repmanager/fs_editor.py @@ -237,7 +237,7 @@ class GitFilesystemEditor(DefaultFilesystemEditor): def _validate_paths_in_same_repo(self, *paths: Path) -> None: root_paths = {GitRepo(path, search_parent_directories=True).working_tree_dir for path in paths} - if len(root_paths): + if len(root_paths) > 1: raise RuntimeError( "Cross-repository operations are not supported for GitFilesystemEditor. Use `--fs-editor default`" )