change from full depth clone to shallow clone
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user