Skip to content

Commit

Permalink
minor comment and force refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Jan 26, 2020
1 parent dd34100 commit 0293f71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dvc/repo/add.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ def add(repo, targets, recursive=False, no_commit=False, fname=None):
num_targets = len(targets)
with Tqdm(total=num_targets, desc="Add", unit="file", leave=True) as pbar:
if num_targets == 1:
# clear unneeded top-level progress bar for single target
pbar.bar_format = "Adding..."
pbar.refresh()
for target in targets:
sub_targets = _find_all_targets(repo, target, recursive)
pbar.total += len(sub_targets) - 1
Expand Down

0 comments on commit 0293f71

Please sign in to comment.