mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-17 17:38:02 +00:00
fix(scripts): guard against empty reply when checking new revisions
This commit is contained in:
committed by
Christian Clason
parent
19c729dae6
commit
ac1d0ff910
@@ -64,7 +64,7 @@ for k, p in pairs(parsers) do
|
||||
sha = stdout[line] and vim.split(stdout[line], '\t')[1]
|
||||
end
|
||||
|
||||
if sha and info.revision ~= sha then
|
||||
if sha and sha ~= '' and info.revision ~= sha then
|
||||
info.revision = sha
|
||||
updates[#updates + 1] = name
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user