Update commit.tpl

pull/466/head
midoks 2 years ago
parent ae3cc4bd0b
commit c0bdf2659f
  1. 4
      plugins/gogs/hook/commit.tpl

@ -16,7 +16,9 @@ git config --global pull.rebase false
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 --branch main git clone $GITADDR --branch main
# git clone $GITADDR if [ "$?" != "0" ];then
git clone $GITADDR
fi
fi fi
unset GIT_DIR unset GIT_DIR

Loading…
Cancel
Save