aboutsummaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2020-10-03 19:26:25 +0200
committerMiquel Sabaté Solà <msabate@suse.com>2020-10-05 19:10:50 +0200
commit9c2b9b83507e92017197253e9d85c52ce1086d63 (patch)
tree8a13ea7a98f6f35c9200b502791093388dfc113c /script
parentd34f4b8aebe72c922ec2d8f6b171b05b3d9f8d1b (diff)
downloadjo.mssola.com-9c2b9b83507e92017197253e9d85c52ce1086d63.tar.gz
jo.mssola.com-9c2b9b83507e92017197253e9d85c52ce1086d63.zip
script: updated main branch to 'main'
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
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