Skip to content

Commit 392e8d2

Browse files
jan-baraooohan
authored andcommitted
reduce git clone download data size
Only gi clone the latest code, do not git clone the complete warehouse
1 parent 6932d1a commit 392e8d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/util.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ function linuxCompile(ctx)
214214
local version = sdkInfo.version
215215
local pyenv_url = "https://github.com/pyenv/pyenv.git"
216216
local dest_pyenv_path = ctx.rootPath .. "/pyenv"
217-
local status = os.execute("git clone " .. pyenv_url .. " " .. dest_pyenv_path)
217+
local status = os.execute("git clone --depth 1 " .. pyenv_url .. " " .. dest_pyenv_path)
218218
if status ~= 0 then
219219
error("git clone failed")
220220
end

0 commit comments

Comments
 (0)