replicate.sh: Don't clone the whole git history
This commit is contained in:
parent
d2ab57a58a
commit
3c75c89619
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user