Skip to content

Commit

Permalink
remove diabling progress option
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Oct 23, 2019
1 parent bfaecf3 commit 1643935
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
1 change: 0 additions & 1 deletion dvc/command/add.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def run(self):
recursive=self.args.recursive,
no_commit=self.args.no_commit,
fname=self.args.file,
progress=True,
)

except DvcException:
Expand Down
12 changes: 2 additions & 10 deletions dvc/repo/add.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,15 @@

@locked
@scm_context
def add(
repo, targets, recursive=False, no_commit=False, fname=None, progress=False
):
def add(repo, targets, recursive=False, no_commit=False, fname=None):
if recursive and fname:
raise RecursiveAddingWhileUsingFilename()

if isinstance(targets, string_types):
targets = [targets]

stages_list = []
with Tqdm(
total=len(targets),
desc="Add",
unit="file",
disable=not progress,
leave=True,
) as pbar:
with Tqdm(total=len(targets), desc="Add", unit="file", leave=True) as pbar:
for target in targets:
sub_targets = _find_all_targets(repo, target, recursive)
pbar.total += len(sub_targets) - 1
Expand Down

0 comments on commit 1643935

Please sign in to comment.