diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2020-10-03 19:26:25 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2020-10-05 19:10:50 +0200 |
| commit | 9c2b9b83507e92017197253e9d85c52ce1086d63 (patch) | |
| tree | 8a13ea7a98f6f35c9200b502791093388dfc113c /script/post-receive | |
| parent | d34f4b8aebe72c922ec2d8f6b171b05b3d9f8d1b (diff) | |
| download | jo.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/post-receive')
| -rw-r--r-- | script/post-receive | 4 |
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 |
