From 65520d3c6c308d33a2aeb757fbbe978494829b97 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Date: Tue, 22 Jan 2013 11:54:51 +0530 Subject: [PATCH] Git seems to require cd-ing to the clone for submodule update. --- antigen.zsh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/antigen.zsh b/antigen.zsh index 7e1e331..189f0cd 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -211,7 +211,10 @@ antigen-revert () { # Pull changes if update requested. --plugin-git pull # Update submodules. - --plugin-git submodule update --recursive + pushd + cd "$clone_dir" + git submodule update --recursive + popd # Get the new revision. local new_rev="$(--plugin-git rev-parse HEAD)" fi -- 2.0.0