mirror of https://github.com/borgbackup/borg.git
fix crash when using borg create --dry-run --keep-tag-files, fixes #570
This commit is contained in:
parent
08e7c546ba
commit
4c00bb0d2f
|
@ -228,7 +228,7 @@ class Archiver:
|
||||||
elif stat.S_ISDIR(st.st_mode):
|
elif stat.S_ISDIR(st.st_mode):
|
||||||
tag_paths = dir_is_tagged(path, exclude_caches, exclude_if_present)
|
tag_paths = dir_is_tagged(path, exclude_caches, exclude_if_present)
|
||||||
if tag_paths:
|
if tag_paths:
|
||||||
if keep_tag_files:
|
if keep_tag_files and not dry_run:
|
||||||
archive.process_dir(path, st)
|
archive.process_dir(path, st)
|
||||||
for tag_path in tag_paths:
|
for tag_path in tag_paths:
|
||||||
self._process(archive, cache, excludes, exclude_caches, exclude_if_present,
|
self._process(archive, cache, excludes, exclude_caches, exclude_if_present,
|
||||||
|
|
Loading…
Reference in New Issue