cli: data_sync: show warning about missing default remote (#9979)

This commit is contained in:
Ruslan Kuprieiev
2023-09-26 23:29:33 +03:00
committed by GitHub
parent a6e0d68cd2
commit f981500862
+4
View File
@@ -14,6 +14,10 @@ class CmdDataBase(CmdBase):
from dvc.utils.humanize import get_summary
default_msg = "Everything is up to date."
if not self.args.remote and not self.repo.config["core"].get("remote"):
ui.warn("No remote provided and no default remote set.")
ui.write(get_summary(stats.items()) or default_msg)