From 6967a582537b0864c70186a7340ee89391cb04ae Mon Sep 17 00:00:00 2001 From: Jonathan Dahan Date: Sun, 29 Jan 2012 22:28:27 -0500 Subject: [PATCH] update submodules recursively --- functions/update-omz | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/update-omz b/functions/update-omz index 3302d4b8..3ddc1977 100644 --- a/functions/update-omz +++ b/functions/update-omz @@ -21,7 +21,7 @@ cd $OMZ_HOME zstyle -t ':omz:function:update-omz' auto-commit || local nocommit='--no-commit' zstyle -t ':omz:function:update-omz' upstream '_upstream' -if git pull --rebase $nocommit --strategy=recursive -X ours ${_upstream:-origin} master; then +if git pull --rebase $nocommit --strategy=recursive -X ours ${_upstream:-origin} master && git submodule update --recursive; then zstyle -t ':omz:function:update-omz' color && printf "$FG[blue]" printf 'Hooray! oh-my-zsh is up-to-date :)\n' else