aboutsummaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rw-r--r--script/post-receive4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/post-receive b/script/post-receive
index c8ed170..7c9edca 100644
--- a/script/post-receive
+++ b/script/post-receive
@@ -20,7 +20,7 @@
NAME=jo
GIT_REPO=$HOME/$NAME.git
-TARGET_BRANCH=master
+TARGET_BRANCH=main
# Exported so it's picked by the `script/docker-build.sh` script.
export BUILD_SOURCE=$HOME/tmp/$NAME
@@ -34,7 +34,7 @@ do
# Re-generate git repository in a temporary directory.
rm -Rf $BUILD_SOURCE
- git clone $GIT_REPO $BUILD_SOURCE
+ git clone --branch $TARGET_BRANCH $GIT_REPO $BUILD_SOURCE
# Build site
chmod +x $BUILD_SOURCE/script/docker-build.sh