change from full depth clone to shallow clone

This commit is contained in:
2021-03-18 15:48:05 +01:00
parent 9e59a3ffc8
commit 5628d12579
3 changed files with 9 additions and 8 deletions

View File

@@ -16,7 +16,7 @@
# directory =~/texmf=
# See package requirements inside the code
# INTERNAL
distro=$(lsb_release -is)
@@ -106,7 +106,8 @@ case $distro in
folder="${HOME}/.config/emacs"
mkdir -p $folder
echo "git clone"
if ! git clone http://gogs.weseng.de/daniel/emacs.git "${folder}" 2>/dev/null && test -d "${folder}" ; then
# shallow clone
if ! git clone --depth 1 http://gogs.weseng.de/daniel/emacs.git "${folder}" 2>/dev/null && test -d "${folder}" ; then
echo "clone failed because the folder ${folder} exists"
fi