mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 15:39:43 +00:00
fix empty ignore patterns
This commit is contained in:
@@ -54,16 +54,17 @@ class Importer:
|
||||
self.log = Logger(debug=self.debug)
|
||||
|
||||
# patch ignore patterns
|
||||
for ign in ignore:
|
||||
if ign.startswith('!'):
|
||||
self.ignore.append(ign)
|
||||
continue
|
||||
if ign.startswith('*/'):
|
||||
self.ignore.append(ign)
|
||||
continue
|
||||
newign = f'*/{ign}'
|
||||
self.log.dbg(f'patching ignore {ign} to {newign}')
|
||||
self.ignore.append(newign)
|
||||
if ignore:
|
||||
for ign in ignore:
|
||||
if ign.startswith('!'):
|
||||
self.ignore.append(ign)
|
||||
continue
|
||||
if ign.startswith('*/'):
|
||||
self.ignore.append(ign)
|
||||
continue
|
||||
newign = f'*/{ign}'
|
||||
self.log.dbg(f'patching ignore {ign} to {newign}')
|
||||
self.ignore.append(newign)
|
||||
|
||||
self.templater = Templategen(variables=self.variables,
|
||||
base=self.dotpath,
|
||||
|
||||
Reference in New Issue
Block a user