From ce609c5f50dcfcad901b2bf1e1df4e9472e0ae46 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Thu, 14 Sep 2017 22:16:05 +0300 Subject: [PATCH] status: don't return 1 if len(statuses) != len(targets) Number of targets from command line doesn't have to match number of actual files that we've processed, as it may as well be a directory. Fixes #204 Signed-off-by: Ruslan Kuprieiev --- dvc/command/data_sync.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/dvc/command/data_sync.py b/dvc/command/data_sync.py index 1bd28eb8c..dff434da0 100644 --- a/dvc/command/data_sync.py +++ b/dvc/command/data_sync.py @@ -52,9 +52,6 @@ class CmdDataStatus(CmdBase): with DvcLock(self.is_locker, self.git): status = self.cloud.status(self.parsed_args.targets, self.parsed_args.jobs) - if len(list(status)) != len(self.parsed_args.targets): - return 1 - self._show(status) return 0