mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-19 16:03:45 +08:00
perf(install): fetch tags by default
close https://github.com/wsdjeg/SpaceVim/issues/4955
This commit is contained in:
parent
b665b9a2de
commit
3a6ae589ca
@ -138,7 +138,9 @@ fetch_repo () {
|
|||||||
success "SpaceVim 更新已完成"
|
success "SpaceVim 更新已完成"
|
||||||
else
|
else
|
||||||
info "正在安装 SpaceVim..."
|
info "正在安装 SpaceVim..."
|
||||||
git clone --depth 1 https://github.com/SpaceVim/SpaceVim.git "$HOME/.SpaceVim"
|
git clone --depth 1 https://github.com/wsdjeg/SpaceVim.git "$HOME/.SpaceVim"
|
||||||
|
cd "$HOME/.SpaceVim"
|
||||||
|
git fetch --tags
|
||||||
success "SpaceVim 安装已完成"
|
success "SpaceVim 安装已完成"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -139,11 +139,18 @@ fetch_repo () {
|
|||||||
(
|
(
|
||||||
cd "${XDGSpaceDir:?}"
|
cd "${XDGSpaceDir:?}"
|
||||||
git pull
|
git pull
|
||||||
|
git fetch --tags
|
||||||
)
|
)
|
||||||
success "Successfully update SpaceVim"
|
success "Successfully update SpaceVim"
|
||||||
else
|
else
|
||||||
info "Trying to clone SpaceVim"
|
info "Trying to clone SpaceVim"
|
||||||
git clone --depth 1 https://github.com/SpaceVim/SpaceVim.git "${XDGSpaceDir:-}"
|
git clone --depth 1 https://github.com/wsdjeg/SpaceVim.git "${XDGSpaceDir:-}"
|
||||||
|
info "fetch spacevim tags"
|
||||||
|
(
|
||||||
|
cd "${XDGSpaceDir:?}"
|
||||||
|
git fetch --tags
|
||||||
|
)
|
||||||
|
success "fetch tags done"
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
success "Successfully clone SpaceVim"
|
success "Successfully clone SpaceVim"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user