From 3e87044901681639f21b88dfe5efc255c29945b0 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Wed, 17 Apr 2019 10:28:31 -0700 Subject: [PATCH] Do shallow copies. --- .gitmodules | 8 ++++++++ install.sh | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitmodules b/.gitmodules index 220ac96..f4ecf6d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,21 +1,29 @@ [submodule "dotfiles/vim/pack/matir/opt/solarized8"] path = dotfiles/vim/pack/matir/opt/solarized8 url = https://github.com/lifepillar/vim-solarized8.git + shallow = true [submodule "dotfiles/vim/pack/matir/start/surround"] path = dotfiles/vim/pack/matir/start/surround url = https://github.com/tpope/vim-surround.git + shallow = true [submodule "dotfiles/vim/pack/matir/start/editorconfig"] path = dotfiles/vim/pack/matir/start/editorconfig url = https://github.com/editorconfig/editorconfig-vim.git + shallow = true [submodule "dotfiles/vim/pack/matir/start/fugitive"] path = dotfiles/vim/pack/matir/start/fugitive url = https://github.com/tpope/vim-fugitive + shallow = true [submodule "dotfiles/vim/pack/matir/start/ctrlp"] path = dotfiles/vim/pack/matir/start/ctrlp url = https://github.com/ctrlpvim/ctrlp.vim.git + shallow = true [submodule "dotfiles/vim/pack/matir/start/vim-go"] path = dotfiles/vim/pack/matir/start/vim-go url = https://github.com/fatih/vim-go.git + shallow = true [submodule "dotfiles/zprezto"] path = dotfiles/zprezto url = https://github.com/sorin-ionescu/prezto.git + fetchRecurseSubmodules = true + shallow = true diff --git a/install.sh b/install.sh index 6e73334..f800c72 100755 --- a/install.sh +++ b/install.sh @@ -312,7 +312,7 @@ install_dotfiles() { } install_main() { - git -C ${BASEDIR} submodule update --init --recursive + git -C ${BASEDIR} submodule update --init --recursive --depth 1 test $MINIMAL = 1 || prerequisites test $INSTALL_PKGS = 1 && is_deb_system && install_apt_pkgs install_dotfiles