Update commit.tpl

pull/522/head
Mr Chen 1 year ago
parent 3ac3350240
commit 9bc72b23d6
  1. 4
      plugins/gitea/hook/commit.tpl

@ -8,6 +8,10 @@ GIT_SDIR="{$CODE_DIR}"
GIT_USER_DIR="${GIT_SDIR}/{$USERNAME}"
GIT_PROJECT_DIR="${GIT_USER_DIR}/{$PROJECT}"
if [ ! -d $GIT_PROJECT_DIR ];then
mkdir -p $GIT_PROJECT_DIR
chown -R www:www $GIT_PROJECT_DIR
fi
git config --global credential.helper store
git config --global pull.rebase false

Loading…
Cancel
Save