From f99ff078df06ef26f9a92e6a01d87f1c79ae342f Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Thu, 7 Nov 2019 19:42:43 -0500 Subject: Add repositories as submodules --- setup.sh | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'setup.sh') diff --git a/setup.sh b/setup.sh index 2cced41..4d554a0 100755 --- a/setup.sh +++ b/setup.sh @@ -3,18 +3,8 @@ WD="$(pwd)" clone() { - printf "Working dir: %s -" $DIR - if [ -d "$DIR/.git" ] ; then - cd $DIR - git pull --ff-only origin master - elif ! [ -d "$DIR/.git" ] ; then - mkdir -p "$DIR" - cd "$DIR" - git clone --depth=1 "$URL" . || - git clone "$URL" . - fi - cd $WD + printf "Working dir: %s\n" "$DIR" + git submodule add "$URL" "$DIR" printf "" } DIR="pack/plugins/start/vim-go" -- cgit v1.2.3