remote: disable gc and status -c for versioned remotes

This commit is contained in:
Peter Rowlands
2022-12-06 19:33:52 +09:00
committed by Peter Rowlands (변기호)
parent f5699ce16b
commit d415a05460
+4
View File
@@ -97,6 +97,10 @@ class DataCloud:
command: str = "<command>",
) -> "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"):