diff options
-rw-r--r-- | script/glob/gitignore.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/script/glob/gitignore.lua b/script/glob/gitignore.lua index ce0beea6..ddd50fff 100644 --- a/script/glob/gitignore.lua +++ b/script/glob/gitignore.lua @@ -173,7 +173,9 @@ function mt:scan(callback) if type(result) == 'table' then for _, path in ipairs(result) do local filename = path:match '([^/\\]+)[/\\]*$' - if filename then + if filename + and filename ~= '.' + and filename ~= '..' then list[#list+1] = current .. '/' .. filename end end |