aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2026-01-29 16:14:17 +0100
committerChristian Clason <ch.clason+github@icloud.com>2026-01-29 16:22:32 +0100
commit19c729dae6e0eeb79423df0cf37780aa9a7cc3b7 (patch)
treeb7349aa4f66b76eb20db0279192d1e1a3b040b37
parentfeat(c3)!: update parser and highlights (#8477) (diff)
downloadnvim-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.
-rw-r--r--lua/nvim-treesitter/install.lua6
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')