Skip to content

Commit

Permalink
reduce git clone download data size
Browse files Browse the repository at this point in the history
Only gi clone the latest code, do not git clone the complete warehouse
  • Loading branch information
jan-bar authored and aooohan committed Jun 2, 2024
1 parent 6932d1a commit 392e8d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ function linuxCompile(ctx)
local version = sdkInfo.version
local pyenv_url = "https://github.com/pyenv/pyenv.git"
local dest_pyenv_path = ctx.rootPath .. "/pyenv"
local status = os.execute("git clone " .. pyenv_url .. " " .. dest_pyenv_path)
local status = os.execute("git clone --depth 1 " .. pyenv_url .. " " .. dest_pyenv_path)
if status ~= 0 then
error("git clone failed")
end
Expand Down

0 comments on commit 392e8d2

Please sign in to comment.