From 5038db48c19b79a857b513e68ba9feaa5df29be0 Mon Sep 17 00:00:00 2001 From: Luke Hubmayer-Werner Date: Wed, 26 Jun 2024 21:14:12 +0930 Subject: [PATCH] Switch from web update pre-push hook to push script that also updates the data subtree --- push | 8 ++++++++ update_subtree.sh | 5 +++++ 2 files changed, 13 insertions(+) create mode 100755 push create mode 100755 update_subtree.sh diff --git a/push b/push new file mode 100755 index 0000000..75cbc7a --- /dev/null +++ b/push @@ -0,0 +1,8 @@ +#/bin/sh +BRANCH=`git branch --show-current` +echo "Pushing branch $BRANCH" +git push +echo "Pushing subtree data for $BRANCH" +./update_subtree.sh +echo "Pushing a new web build for $BRANCH" +./update_web_build.sh diff --git a/update_subtree.sh b/update_subtree.sh new file mode 100755 index 0000000..7679a95 --- /dev/null +++ b/update_subtree.sh @@ -0,0 +1,5 @@ +#!/bin/sh +# Updates the data subtree repo +BRANCH=`git branch --show-current` +REMOTE=gogs@git.ufeff.net:birdulon/ChocolateBirdData.git +git subtree push -P data $REMOTE $BRANCH