Skip to content

Commit

Permalink
remove potential single-iteration bar
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Jan 26, 2020
1 parent aa3ff02 commit 25557c5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dvc/repo/add.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,12 @@ def add(repo, targets, recursive=False, no_commit=False, fname=None):

repo.check_modified_graph(stages)

for stage in Tqdm(stages, desc="Processing", unit="file"):
stage.save()
for stage in Tqdm(
stages,
desc="Processing",
unit="file",
disable=len(stages) == 1,
):

if not no_commit:
stage.commit()
Expand Down

0 comments on commit 25557c5

Please sign in to comment.