Skip to content

Commit 40963e8

Browse files
committed
Skip download file at specific hisotry if file didn't exist
1 parent 71c47fd commit 40963e8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

mergin/client_pull.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,8 @@ def download_diffs_async(mc, project_directory, file_path, versions):
687687
fetch_files = []
688688

689689
for version in versions:
690+
if version not in file_history["history"]:
691+
continue # skip if this file was not modified at this version
690692
version_data = file_history["history"][version]
691693
if "diff" not in version_data:
692694
continue # skip if there is no diff in history

0 commit comments

Comments
 (0)