From 660fcfd10bd3360d0c9f47388dace30d7c2925c9 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Thu, 28 Nov 2019 01:04:40 +0000 Subject: [PATCH] fix disable logic --- dvc/repo/add.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dvc/repo/add.py b/dvc/repo/add.py index a36b6619e7..92181c78d2 100644 --- a/dvc/repo/add.py +++ b/dvc/repo/add.py @@ -54,7 +54,7 @@ def add(repo, targets, recursive=False, no_commit=False, fname=None): stages, desc="Processing", unit="file", - disable=len(stages) == 1, + disable=True if len(stages) == 1 else None, ): if not no_commit: @@ -94,7 +94,7 @@ def _create_stages(repo, targets, fname, pbar=None): for out in Tqdm( targets, desc="Creating stages", - disable=len(targets) < LARGE_DIR_SIZE, + disable=True if len(targets) < LARGE_DIR_SIZE else None, unit="file", ): stage = Stage.create(repo, outs=[out], add=True, fname=fname)