1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 03:50:04 +08:00

Remove git-dir

This commit is contained in:
wsdjeg 2018-01-27 20:16:24 +08:00
parent 3baba2228f
commit e2d5da41b2

View File

@ -132,7 +132,9 @@ echo_with_color () {
fetch_repo () { fetch_repo () {
if [[ -d "$HOME/.SpaceVim" ]]; then if [[ -d "$HOME/.SpaceVim" ]]; then
info "Trying to update SpaceVim" info "Trying to update SpaceVim"
git --git-dir "$HOME/.SpaceVim/.git" pull cd "$HOME/.SpaceVim"
git pull
cd - > /dev/null 2>&1
success "Successfully update SpaceVim" success "Successfully update SpaceVim"
else else
info "Trying to clone SpaceVim" info "Trying to clone SpaceVim"