Skip to content

Commit

Permalink
Support for Git submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
petrockblog committed Feb 13, 2017
1 parent 870c4bf commit 283babc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scriptmodules/helpers.sh
Expand Up @@ -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
Expand Down

0 comments on commit 283babc

Please sign in to comment.