Commit 2873acbf1a9bb56b5b21222c78b18a0518292ba4

Authored by Gregory Hugaerts
Committed by Shrikant Sharat
1 parent fdcb458fd9

make bundles install submodules

Showing 1 changed file with 6 additions and 1 deletions Side-by-side Diff

... ... @@ -204,12 +204,17 @@ antigen-revert () {
204 204  
205 205 # Clone if it doesn't already exist.
206 206 if [[ ! -d $clone_dir ]]; then
207   - git clone "${url%|*}" "$clone_dir"
  207 + git clone --recursive "${url%|*}" "$clone_dir"
208 208 elif $update; then
209 209 # Save current revision.
210 210 local old_rev="$(--plugin-git rev-parse HEAD)"
211 211 # Pull changes if update requested.
212 212 --plugin-git pull
  213 + # update submodules
  214 + pushd
  215 + cd "$clone_dir"
  216 + git submodule update --recursive
  217 + popd
213 218 # Get the new revision.
214 219 local new_rev="$(--plugin-git rev-parse HEAD)"
215 220 fi