diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2026-01-31 11:01:43 +0100 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2026-01-31 11:07:03 +0100 |
| commit | ac1d0ff910f3d7c6e0452461e7fe7d12c3687971 (patch) | |
| tree | 3eb81658cc782282b7972bd5bb9fa29cb35d3f5a /scripts/update-parsers.lua | |
| parent | fix(install)!: remove gitlab codepath (diff) | |
| download | nvim-treesitter-ac1d0ff910f3d7c6e0452461e7fe7d12c3687971.tar nvim-treesitter-ac1d0ff910f3d7c6e0452461e7fe7d12c3687971.tar.gz nvim-treesitter-ac1d0ff910f3d7c6e0452461e7fe7d12c3687971.tar.bz2 nvim-treesitter-ac1d0ff910f3d7c6e0452461e7fe7d12c3687971.tar.lz nvim-treesitter-ac1d0ff910f3d7c6e0452461e7fe7d12c3687971.tar.xz nvim-treesitter-ac1d0ff910f3d7c6e0452461e7fe7d12c3687971.tar.zst nvim-treesitter-ac1d0ff910f3d7c6e0452461e7fe7d12c3687971.zip | |
fix(scripts): guard against empty reply when checking new revisions
Diffstat (limited to 'scripts/update-parsers.lua')
| -rwxr-xr-x | scripts/update-parsers.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/update-parsers.lua b/scripts/update-parsers.lua index 469865393..d3a33ad6c 100755 --- a/scripts/update-parsers.lua +++ b/scripts/update-parsers.lua @@ -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 |
