From 643258bfd124be94fd5e4bb1ab4c77e0c7e46326 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Wed, 18 Oct 2017 20:34:58 -0400 Subject: Shallow git clones by default --- gen-setup.sh | 2 +- setup.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gen-setup.sh b/gen-setup.sh index 00d2cf7..878a603 100755 --- a/gen-setup.sh +++ b/gen-setup.sh @@ -37,7 +37,7 @@ clone() { elif ! [ -d "$DIR" ] ; then mkdir -p "$DIR" cd "$DIR" - git clone "$URL" . + git clone --depth=1 "$URL" . fi cd $WD }' > setup.sh diff --git a/setup.sh b/setup.sh index 77ee4d9..a980c14 100755 --- a/setup.sh +++ b/setup.sh @@ -10,7 +10,7 @@ clone() { elif ! [ -d "$DIR" ] ; then mkdir -p "$DIR" cd "$DIR" - git clone "$URL" . + git clone --depth=1 "$URL" . fi cd $WD } -- cgit v1.2.3