mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
remove potential single-iteration bar
This commit is contained in:
+6
-2
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user