diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2026-01-29 16:14:17 +0100 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2026-01-29 16:22:32 +0100 |
| commit | 19c729dae6e0eeb79423df0cf37780aa9a7cc3b7 (patch) | |
| tree | b7349aa4f66b76eb20db0279192d1e1a3b040b37 /lua | |
| parent | feat(c3)!: update parser and highlights (#8477) (diff) | |
| download | nvim-treesitter-19c729dae6e0eeb79423df0cf37780aa9a7cc3b7.tar nvim-treesitter-19c729dae6e0eeb79423df0cf37780aa9a7cc3b7.tar.gz nvim-treesitter-19c729dae6e0eeb79423df0cf37780aa9a7cc3b7.tar.bz2 nvim-treesitter-19c729dae6e0eeb79423df0cf37780aa9a7cc3b7.tar.lz nvim-treesitter-19c729dae6e0eeb79423df0cf37780aa9a7cc3b7.tar.xz nvim-treesitter-19c729dae6e0eeb79423df0cf37780aa9a7cc3b7.tar.zst nvim-treesitter-19c729dae6e0eeb79423df0cf37780aa9a7cc3b7.zip | |
fix(install)!: remove gitlab codepath
Gitlab tarballs have started including the commit hash, so downstream
processing fails anyway.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-treesitter/install.lua | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua index 1020e7da9..81fad11d2 100644 --- a/lua/nvim-treesitter/install.lua +++ b/lua/nvim-treesitter/install.lua @@ -197,17 +197,13 @@ end ---@param output_dir string ---@return string? err local function do_download(logger, url, project_name, cache_dir, revision, output_dir) - local is_gitlab = url:find('gitlab.com', 1, true) - local tmp = output_dir .. '-tmp' rmpath(tmp) a.schedule() url = url:gsub('.git$', '') - local target = is_gitlab - and string.format('%s/-/archive/%s/%s-%s.tar.gz', url, revision, project_name, revision) - or string.format('%s/archive/%s.tar.gz', url, revision) + local target = string.format('%s/archive/%s.tar.gz', url, revision) local tarball_path = fs.joinpath(cache_dir, project_name .. '.tar.gz') |
