Skip to content

Commit

Permalink
cli: data_sync: show warning about missing default remote (iterative#…
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop authored Sep 26, 2023
1 parent a6e0d68 commit f981500
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dvc/commands/data_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ def log_summary(self, stats):
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)


Expand Down

0 comments on commit f981500

Please sign in to comment.