From db870335e3a470e83d87f231b9b6197fe7a8286c Mon Sep 17 00:00:00 2001 From: dberenbaum Date: Tue, 31 Oct 2023 10:41:25 -0400 Subject: [PATCH] gc: don't prompt when for dry run --- dvc/commands/gc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(