From be61026920c9a0db6d775ec97a002984147b954c Mon Sep 17 00:00:00 2001 From: Indrajit Raychaudhuri Date: Tue, 4 May 2021 21:18:59 -0500 Subject: [PATCH] general: Apply submodules' path change in doc and `zprezto-update` We need to accommodate cases where a submodule local path (or remote) URL can change. Accordingly, update instruction and `zprezto-update` function to synchronizes submodules' remote URL configuration setting to the updated value automatically. --- README.md | 1 + init.zsh | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index ecce7dd..b5fde17 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,7 @@ To pull the latest changes and update submodules manually: ```console cd $ZPREZTODIR git pull +git submodule sync --recursive git submodule update --init --recursive ``` diff --git a/init.zsh b/init.zsh index 08bd3ab..5d7996a 100644 --- a/init.zsh +++ b/init.zsh @@ -44,6 +44,7 @@ function zprezto-update { printf "There is an update available. Trying to pull.\n\n" if git pull --ff-only; then printf "Syncing submodules\n" + git submodule sync --recursive git submodule update --init --recursive return $? else