Skip to content

Commit c10a57a

Browse files
authored
Merge pull request #160 from bluesliverx/main
Fix handling of exclusion lines that are empty
2 parents 45fedec + b1de6cd commit c10a57a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildrunner/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def _exclude_working_dir(tarinfo):
245245
if tarinfo.name == os.path.basename(self.build_results_dir):
246246
return None
247247
for _ex in excludes:
248-
if fnmatch.fnmatch(tarinfo.name, _ex):
248+
if _ex and _ex.strip() and fnmatch.fnmatch(tarinfo.name, _ex):
249249
return None
250250
return tarinfo
251251

0 commit comments

Comments
 (0)