From 5628d125791495841f7ce2edf68fdfe2e9527e25 Mon Sep 17 00:00:00 2001 From: Daniel Weschke Date: Thu, 18 Mar 2021 15:48:05 +0100 Subject: [PATCH] change from full depth clone to shallow clone --- README.md | 6 +++--- README.org | 6 +++--- scripts/install.sh | 5 +++-- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index dffafae1..5a1f488d 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,9 @@ a bunch of online resources. Run one of the following install script commands (using curl, wget or fetch). - sh -c "$(curl -fsSL http://gogs.weseng.de/daniel/emacs/raw/master/scripts/install.sh)" - sh -c "$(wget -O- http://gogs.weseng.de/daniel/emacs/raw/master/scripts/install.sh)" - sh -c "$(fetch -o - http://gogs.weseng.de/daniel/emacs/raw/master/scripts/install.sh)" + sh -c "$(curl -fsSL http://gitea.weseng.de/daniel/emacs/raw/master/scripts/install.sh)" + sh -c "$(wget -O- http://gitea.weseng.de/daniel/emacs/raw/master/scripts/install.sh)" + sh -c "$(fetch -o - http://gitea.weseng.de/daniel/emacs/raw/master/scripts/install.sh)" Installation path is `~/.config/emacs`. See details and other installed linux packages as requirements inside `sripts/install.sh`. diff --git a/README.org b/README.org index eacd712b..a3203b7a 100644 --- a/README.org +++ b/README.org @@ -11,9 +11,9 @@ a bunch of online resources. :END: Run one of the following install script commands (using curl, wget or fetch). #+begin_src sh - sh -c "$(curl -fsSL http://gogs.weseng.de/daniel/emacs/raw/master/scripts/install.sh)" - sh -c "$(wget -O- http://gogs.weseng.de/daniel/emacs/raw/master/scripts/install.sh)" - sh -c "$(fetch -o - http://gogs.weseng.de/daniel/emacs/raw/master/scripts/install.sh)" + sh -c "$(curl -fsSL http://gitea.weseng.de/daniel/emacs/raw/master/scripts/install.sh)" + sh -c "$(wget -O- http://gitea.weseng.de/daniel/emacs/raw/master/scripts/install.sh)" + sh -c "$(fetch -o - http://gitea.weseng.de/daniel/emacs/raw/master/scripts/install.sh)" #+end_src Installation path is =~/.config/emacs=. See details and other diff --git a/scripts/install.sh b/scripts/install.sh index 5839d7f3..68ba4c79 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -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