Skip to content

Commit

Permalink
Skip download file at specific hisotry if file didn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinBuira committed Sep 12, 2024
1 parent 71c47fd commit 40963e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mergin/client_pull.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,8 @@ def download_diffs_async(mc, project_directory, file_path, versions):
fetch_files = []

for version in versions:
if version not in file_history["history"]:
continue # skip if this file was not modified at this version
version_data = file_history["history"][version]
if "diff" not in version_data:
continue # skip if there is no diff in history
Expand Down

0 comments on commit 40963e8

Please sign in to comment.