Commit 65520d3c6c308d33a2aeb757fbbe978494829b97

Authored by Shrikant Sharat
1 parent 292d226b93

Git seems to require cd-ing to the clone for submodule update.

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

... ... @@ -211,7 +211,10 @@ antigen-revert () {
211 211 # Pull changes if update requested.
212 212 --plugin-git pull
213 213 # Update submodules.
214   - --plugin-git submodule update --recursive
  214 + pushd
  215 + cd "$clone_dir"
  216 + git submodule update --recursive
  217 + popd
215 218 # Get the new revision.
216 219 local new_rev="$(--plugin-git rev-parse HEAD)"
217 220 fi