Switch from web update pre-push hook to push script that also updates the data subtree

This commit is contained in:
Luke Hubmayer-Werner 2024-06-26 21:14:12 +09:30
parent 8452b1e426
commit 5038db48c1
2 changed files with 13 additions and 0 deletions

8
push Executable file
View File

@ -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

5
update_subtree.sh Executable file
View File

@ -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