Shallow clones

This commit is contained in:
David Tomaschik
2025-05-23 16:17:03 -07:00
parent 695cef6cb3
commit 746653d28d
2 changed files with 2 additions and 3 deletions

View File

@@ -15,10 +15,9 @@ function installer_main {
fi ) || ( echo 'Failed to install git!' >/dev/stderr; false) fi ) || ( echo 'Failed to install git!' >/dev/stderr; false)
fi fi
git clone https://github.com/Matir/skel.git ${HOME}/.skel git clone --depth 1 https://github.com/Matir/skel.git ${HOME}/.skel
${HOME}/.skel/install.sh ${HOME}/.skel/install.sh
${HOME}/.skel/install.sh packages minimal
} }
installer_main installer_main

View File

@@ -348,7 +348,7 @@ install_main() {
command -v git >/dev/null 2>&1 && \ command -v git >/dev/null 2>&1 && \
git -C "${BASEDIR}" pull --ff-only git -C "${BASEDIR}" pull --ff-only
test "$MINIMAL" = 1 || ( command -v git >/dev/null 2>&1 && \ test "$MINIMAL" = 1 || ( command -v git >/dev/null 2>&1 && \
git -C "${BASEDIR}" submodule update --init --recursive ) git -C "${BASEDIR}" submodule update --init --recursive --depth 1 )
fi fi
test "$MINIMAL" = 1 || prerequisites test "$MINIMAL" = 1 || prerequisites
install_dotfiles install_dotfiles