From 50a04ad3db19f1fa0f271d7377c6ca67abf4479d Mon Sep 17 00:00:00 2001 From: Michael Parque Date: Fri, 27 May 2022 10:47:39 -0400 Subject: [PATCH] Fix git submodule update command to properly pin submodule dependencies: https://github.com/anishathalye/dotbot/issues/314 --- Tips-and-Tricks.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tips-and-Tricks.md b/Tips-and-Tricks.md index c222e1b..224c6eb 100644 --- a/Tips-and-Tricks.md +++ b/Tips-and-Tricks.md @@ -60,7 +60,8 @@ BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" cd "${BASE_DIR}" -git submodule update --init --recursive --remote +git -C "${DOTBOT_DIR}" submodule sync --quiet --recursive +git submodule update --init --recursive "${DOTBOT_DIR}" while IFS= read -r config; do