From 7d6897f91b817cfee8e1f3fe3913ec83ef6d8e2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Jean?= Date: Tue, 6 Dec 2022 07:33:43 -0500 Subject: [PATCH] Fix dataset not synced if the changes are only modified files (#835) --- clearml/cli/data/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clearml/cli/data/__main__.py b/clearml/cli/data/__main__.py index 95226fe5..79103fa3 100644 --- a/clearml/cli/data/__main__.py +++ b/clearml/cli/data/__main__.py @@ -667,7 +667,7 @@ def ds_sync(args): print("Sync completed: {} files removed, {} added, {} modified".format(removed, added, modified)) if not args.skip_close: - if dataset_created and not removed and not added: + if dataset_created and not removed and not added and not modified: print('Zero modifications on local copy, reverting dataset creation.') Dataset.delete(ds.id, force=True) return 0