Skip to content

Commit d97ae4c

Browse files
committed
fix push with no changes
1 parent c4b47fc commit d97ae4c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mergin/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,10 @@ def push_project(self, directory):
387387

388388
files = list_project_directory(directory)
389389
changes = project_changes(server_info["files"], files)
390-
upload_files = changes["added"] + changes["updated"]
390+
if all(len(changes[key]) == 0 for key in changes.keys()):
391+
return
391392

393+
upload_files = changes["added"] + changes["updated"]
392394
for f in upload_files:
393395
f["chunks"] = [str(uuid.uuid4()) for i in range(math.ceil(f["size"] / CHUNK_SIZE))]
394396

0 commit comments

Comments
 (0)