diff --git a/dvc/data_cloud.py b/dvc/data_cloud.py index 7e3724c0e..7ba148ca5 100644 --- a/dvc/data_cloud.py +++ b/dvc/data_cloud.py @@ -97,6 +97,10 @@ class DataCloud: command: str = "", ) -> "HashFileDB": remote = self.get_remote(name=name, command=command) + if remote.fs.version_aware or remote.worktree: + raise RemoteConfigError( + f"'{command}' is unsupported for cloud versioned remotes" + ) return remote.odb def _log_missing(self, status: "CompareStatusResult"):