mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(install)!: remove gitlab codepath
Gitlab tarballs have started including the commit hash, so downstream processing fails anyway.
This commit is contained in:
parent
04ab807f8e
commit
68666c9e23
1 changed files with 1 additions and 5 deletions
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue