gulp-exclude-gitignore icon indicating copy to clipboard operation
gulp-exclude-gitignore copied to clipboard

Empty .gitignore crashes

Open gucong3000 opened this issue 7 years ago • 0 comments

Hi,

when .gitignore file is empty gulp-exclude-gitignore crashes with the following error:

/usr/local/lib/node_modules/eclint/node_modules/gulp-match/index.js:36
			throw new Error('gulp-match: empty glob array');
			^

Error: gulp-match: empty glob array
    at module.exports (/usr/local/lib/node_modules/eclint/node_modules/gulp-match/index.js:36:10)
    at DestroyableTransform._transform (/usr/local/lib/node_modules/eclint/node_modules/gulp-ignore/index.js:17:8)
    at DestroyableTransform.Transform._read (/usr/local/lib/node_modules/eclint/node_modules/readable-stream/lib/_stream_transform.js:184:10)
    at DestroyableTransform.Transform._write (/usr/local/lib/node_modules/eclint/node_modules/readable-stream/lib/_stream_transform.js:172:83)
    at doWrite (/usr/local/lib/node_modules/eclint/node_modules/readable-stream/lib/_stream_writable.js:428:64)
    at writeOrBuffer (/usr/local/lib/node_modules/eclint/node_modules/readable-stream/lib/_stream_writable.js:417:5)
    at DestroyableTransform.Writable.write (/usr/local/lib/node_modules/eclint/node_modules/readable-stream/lib/_stream_writable.js:334:11)
    at StreamFilter.ondata (/usr/local/lib/node_modules/eclint/node_modules/readable-stream/lib/_stream_readable.js:619:20)
    at emitOne (events.js:116:13)
    at StreamFilter.emit (events.js:211:7)

https://github.com/jedmao/eclint/issues/134

gucong3000 avatar May 03 '18 02:05 gucong3000