From 9c2b9b83507e92017197253e9d85c52ce1086d63 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Sat, 3 Oct 2020 19:26:25 +0200 Subject: script: updated main branch to 'main' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- script/post-receive | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'script/post-receive') 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 -- cgit v1.2.3