From ae3cc4bd0bf4563d399e67f22d1370e011078d15 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 4 Oct 2023 15:53:59 +0800 Subject: [PATCH] Update commit.tpl --- plugins/gogs/hook/commit.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/gogs/hook/commit.tpl b/plugins/gogs/hook/commit.tpl index cf2ee4513..8c7631b66 100755 --- a/plugins/gogs/hook/commit.tpl +++ b/plugins/gogs/hook/commit.tpl @@ -15,7 +15,8 @@ git config --global pull.rebase false # echo $GIT_PROJECT_DIR if [ ! -d $GIT_PROJECT_DIR ];then mkdir -p $GIT_USER_DIR && cd $GIT_USER_DIR - git clone $GITADDR + git clone $GITADDR --branch main + # git clone $GITADDR fi unset GIT_DIR