diff --git a/plugins/gitea/hook/commit.tpl.ssh b/plugins/gitea/hook/commit.tpl.ssh index 0602d64f0..a122b5c49 100755 --- a/plugins/gitea/hook/commit.tpl.ssh +++ b/plugins/gitea/hook/commit.tpl.ssh @@ -15,7 +15,9 @@ if [ ! -d $GIT_PROJECT_DIR ];then fi unset GIT_DIR -git config pull.rebase false + +git config pull.rebase true +git config credential.helper store cd $GIT_PROJECT_DIR && git pull