replicate.sh: Don't clone the whole git history

This commit is contained in:
Salt 2018-08-24 17:24:03 -05:00
parent d2ab57a58a
commit 3c75c89619

View File

@ -13,7 +13,7 @@ homedir="$PWD"
repo='git@gitlab.com:rehashedsalt/home.git'
config='git --git-dir="$gitdir" --work-tree="$homedir"'
git clone --recursive --separate-git-dir="$gitdir" "$repo" "$tempfolder"
git clone --recursive --depth 100 --separate-git-dir="$gitdir" "$repo" "$tempfolder"
error="$?"
if ! [ "$error" == "0" ]; then
printf "$0: error: failed cloning repository \"$repo\": $error\n" 1>&2