소스 검색

Merge pull request #571 from ThomasWaldmann/fix-570

fix crash when using borg create --dry-run --keep-tag-files, fixes #570
TW 9 년 전
부모
커밋
735fe557e2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      borg/archiver.py

+ 1 - 1
borg/archiver.py

@@ -232,7 +232,7 @@ class Archiver:
         elif stat.S_ISDIR(st.st_mode):
             tag_paths = dir_is_tagged(path, exclude_caches, exclude_if_present)
             if tag_paths:
-                if keep_tag_files:
+                if keep_tag_files and not dry_run:
                     archive.process_dir(path, st)
                     for tag_path in tag_paths:
                         self._process(archive, cache, excludes, exclude_caches, exclude_if_present,