From e777cbc1cb10da93cb257305b05a6bba54307813 Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Wed, 8 Mar 2023 08:27:05 +0100
Subject: Change remotes to simply be git submodules
---
lib/subcommands/sync.bash | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
(limited to 'lib/subcommands/sync.bash')
diff --git a/lib/subcommands/sync.bash b/lib/subcommands/sync.bash
index e2eac77..0413ce4 100644
--- a/lib/subcommands/sync.bash
+++ b/lib/subcommands/sync.bash
@@ -18,20 +18,9 @@ subcommand()
notice "bashtard/sync" "Syncing $BASHTARD_ETCDIR"
pushd -- "$BASHTARD_ETCDIR" > /dev/null || return 4
git pull origin master || return 4
+ git submodule update --recursive --remote || return 4
popd > /dev/null || return 4
- # Otherwise, do a full sync
- notice "bashtard/sync" "Syncing remote playbooks"
-
- # Update all playbook sources
- while read -r playbook _ branch
- do
- pushd -- "$BASHTARD_ETCDIR/playbooks.d/$playbook" > /dev/null \
- || return 2
- git pull origin "$branch"
- popd > /dev/null || return 2
- done < "$BASHTARD_ETCDIR/playbooks.d/remotes"
-
# Run a sync for each registered playbook for this host
while read -r playbook
do
--
cgit v1.1