Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terrarium: fix cross-repo git mv check #163

Merged
merged 1 commit into from
Dec 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion terrarium/dl_repmanager/dl_repmanager/fs_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`"
)
Expand Down
Loading