Skip to content

Commit

Permalink
Fix handling of exclusion lines that are empty
Browse files Browse the repository at this point in the history
  • Loading branch information
saville committed Sep 5, 2024
1 parent 45fedec commit b1de6cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildrunner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def _exclude_working_dir(tarinfo):
if tarinfo.name == os.path.basename(self.build_results_dir):
return None
for _ex in excludes:
if fnmatch.fnmatch(tarinfo.name, _ex):
if _ex and _ex.strip() and fnmatch.fnmatch(tarinfo.name, _ex):
return None
return tarinfo

Expand Down

0 comments on commit b1de6cd

Please sign in to comment.