mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 10:35:08 +02:00
perf(installer): use a shallow clone of lunarvim (#4197)
* perf(`utils/installer`): speed up lvim installation * feat(`utils/installer`): show progress during repo cloning * fest: longer timeout --------- Co-authored-by: LostNeophyte <lostneophyte@tuta.io>
This commit is contained in:
parent
ef3f25fd1d
commit
3dce3d86d4
2 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ local function git_cmd(opts)
|
|||
on_stderr = function(_, data)
|
||||
table.insert(stderr, data)
|
||||
end,
|
||||
}):sync()
|
||||
}):sync(10000)
|
||||
|
||||
if not vim.tbl_isempty(stderr) then
|
||||
Log:debug(stderr)
|
||||
|
|
|
@ -392,7 +392,7 @@ function verify_lvim_dirs() {
|
|||
|
||||
function clone_lvim() {
|
||||
msg "Cloning LunarVim configuration"
|
||||
if ! git clone --branch "$LV_BRANCH" \
|
||||
if ! git clone --progress --depth 1 --branch "$LV_BRANCH" \
|
||||
"https://github.com/${LV_REMOTE}" "$LUNARVIM_BASE_DIR"; then
|
||||
echo "Failed to clone repository. Installation failed."
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue