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:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user