From f98150086254ae271145b1d3307b75d32ae3cb20 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Tue, 26 Sep 2023 23:29:33 +0300 Subject: [PATCH] cli: data_sync: show warning about missing default remote (#9979) --- dvc/commands/data_sync.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dvc/commands/data_sync.py b/dvc/commands/data_sync.py index 6c2f92489..836edaff2 100644 --- a/dvc/commands/data_sync.py +++ b/dvc/commands/data_sync.py @@ -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)