mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-15 15:19:27 +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 更新已完成"
|
||||
else
|
||||
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 安装已完成"
|
||||
fi
|
||||
}
|
||||
|
@ -139,11 +139,18 @@ fetch_repo () {
|
||||
(
|
||||
cd "${XDGSpaceDir:?}"
|
||||
git pull
|
||||
git fetch --tags
|
||||
)
|
||||
success "Successfully update SpaceVim"
|
||||
else
|
||||
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
|
||||
success "Successfully clone SpaceVim"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user