Don't really need full clones

Sat, 21 Jan 2017 21:34:46 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 21 Jan 2017 21:34:46 -0500
changeset 482
2c7cb331d2dc
parent 481
92be81c404a5
child 483
1c0402e3db25

Don't really need full clones

bin/homedir-setup file | annotate | diff | comparison | revisions
bin/setup-neomutt file | annotate | diff | comparison | revisions
--- a/bin/homedir-setup
+++ b/bin/homedir-setup
@@ -17,28 +17,28 @@ pull() {
 }
 
 if ! [ -d .zgen ]; then
-  git clone 'https://github.com/tarjoilija/zgen.git' .zgen
+  git clone --depth 1 'https://github.com/tarjoilija/zgen.git' .zgen
 else
   pull .zgen
 fi
 
 if ! [ -d .plenv ]; then
-  git clone 'https://github.com/tokuhirom/plenv.git' .plenv
-  git clone 'https://github.com/tokuhirom/Perl-Build.git' .plenv/plugins/perl-build/
+  git clone --depth 1 'https://github.com/tokuhirom/plenv.git' .plenv
+  git clone --depth 1 'https://github.com/tokuhirom/Perl-Build.git' .plenv/plugins/perl-build/
 else
   pull .plenv
   pull .plenv/plugins/perl-build
 fi
 
 if ! [ -d .asdf ]; then
-  git clone 'https://github.com/asdf-vm/asdf' .asdf
+  git clone --depth 1 'https://github.com/asdf-vm/asdf' .asdf
 else
   pull .asdf
 fi
 
 for LANG in ruby nodejs erlang elixir; do
   if ! [ -d .asdf/plugins/$LANG ]; then
-    git clone "https://github.com/asdf-vm/asdf-$LANG" .asdf/plugins/$LANG
+    git clone --depth 1 "https://github.com/asdf-vm/asdf-$LANG" .asdf/plugins/$LANG
   else
     pull .asdf/plugins/$LANG
   fi
--- a/bin/setup-neomutt
+++ b/bin/setup-neomutt
@@ -9,7 +9,7 @@ cd
 mkdir -p sandbox
 
 if [ ! -d sandbox/neomutt ]; then
-  git clone https://github.com/neomutt/neomutt.git sandbox/neomutt
+  git clone --depth 1 https://github.com/neomutt/neomutt.git sandbox/neomutt
 else
   git -C sandbox/neomutt pull
 fi

mercurial