Permalink
Browse files

Support for Git submodules

1 parent 870c4bf commit 283babc4ed95ca35d6d9407c753e697259f9a5d0 @petrockblog petrockblog committed Feb 13, 2017
Showing with 2 additions and 1 deletion.
  1. +2 −1 scriptmodules/helpers.sh
@@ -327,9 +327,10 @@ function gitPullOrClone() {
if [[ -d "$dir/.git" ]]; then
pushd "$dir" > /dev/null
git pull > /dev/null
+ git submodule update --init --recursive
popd > /dev/null
else
- local git="git clone"
+ local git="git clone --recursive"
if [[ "$__persistent_repos" -ne 1 ]]; then
[[ "$repo" =~ github ]] && git+=" --depth 1"
fi

0 comments on commit 283babc

Please sign in to comment.