From 9575bf831765033243743f026fcaabc9a02e9f78 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Wed, 8 Mar 2023 10:12:23 +0100 Subject: Add --init to initialize new submodules --- lib/subcommands/pull.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/subcommands/pull.bash b/lib/subcommands/pull.bash index 42a51e1..dad7e52 100644 --- a/lib/subcommands/pull.bash +++ b/lib/subcommands/pull.bash @@ -17,6 +17,6 @@ subcommand() [[ -n $dirty ]] && git -C "$BASHTARD_ETCDIR" stash git -C "$BASHTARD_ETCDIR" pull origin master || return 4 - git -C "$BASHTARD_ETCDIR" submodule update --recursive --remote || return 4 + git -C "$BASHTARD_ETCDIR" submodule update --init --recursive --remote || return 4 [[ -n $dirty ]] && git -C "$BASHTARD_ETCDIR" stash pop } -- cgit v1.1