diff --git a/dvc/commands/gc.py b/dvc/commands/gc.py index 1350b9362..04b7d4d7f 100644 --- a/dvc/commands/gc.py +++ b/dvc/commands/gc.py @@ -63,7 +63,7 @@ class CmdGC(CmdBase): logger.warning(msg) msg = "Are you sure you want to proceed?" - if not self.args.force and not ui.confirm(msg): + if not self.args.dry and not self.args.force and not ui.confirm(msg): return 1 self.repo.gc(