Update commit.tpl

pull/466/head
midoks 2 years ago
parent 0f8c9ee740
commit ae3cc4bd0b
  1. 3
      plugins/gogs/hook/commit.tpl

@ -15,7 +15,8 @@ git config --global pull.rebase false
# echo $GIT_PROJECT_DIR # echo $GIT_PROJECT_DIR
if [ ! -d $GIT_PROJECT_DIR ];then if [ ! -d $GIT_PROJECT_DIR ];then
mkdir -p $GIT_USER_DIR && cd $GIT_USER_DIR mkdir -p $GIT_USER_DIR && cd $GIT_USER_DIR
git clone $GITADDR git clone $GITADDR --branch main
# git clone $GITADDR
fi fi
unset GIT_DIR unset GIT_DIR

Loading…
Cancel
Save