1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-16 21:24:10 +00:00

fix empty ignore patterns

This commit is contained in:
deadc0de6
2023-09-18 15:11:24 +02:00
parent cdb9b7e983
commit 9953f07ba7

View File

@@ -54,16 +54,17 @@ class Importer:
self.log = Logger(debug=self.debug) self.log = Logger(debug=self.debug)
# patch ignore patterns # patch ignore patterns
for ign in ignore: if ignore:
if ign.startswith('!'): for ign in ignore:
self.ignore.append(ign) if ign.startswith('!'):
continue self.ignore.append(ign)
if ign.startswith('*/'): continue
self.ignore.append(ign) if ign.startswith('*/'):
continue self.ignore.append(ign)
newign = f'*/{ign}' continue
self.log.dbg(f'patching ignore {ign} to {newign}') newign = f'*/{ign}'
self.ignore.append(newign) self.log.dbg(f'patching ignore {ign} to {newign}')
self.ignore.append(newign)
self.templater = Templategen(variables=self.variables, self.templater = Templategen(variables=self.variables,
base=self.dotpath, base=self.dotpath,