Fix dataset not synced if the changes are only modified files (#835)

This commit is contained in:
Frédéric Jean 2022-12-06 07:33:43 -05:00 committed by GitHub
parent 64e1fb8571
commit 7d6897f91b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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