From 4e0db8d0a14545f0d855f6864c24db17b1d4220c Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Wed, 27 Mar 2024 21:11:53 +0800 Subject: [PATCH] Update commit.tpl.ssh --- plugins/gitea/hook/commit.tpl.ssh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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