From 2adc9c7bc774b4ebd06bce3dc5be81590ec58fed Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 11 Nov 2021 18:46:42 +0800 Subject: [PATCH] Update commit.tpl --- plugins/gogs/hook/commit.tpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/gogs/hook/commit.tpl b/plugins/gogs/hook/commit.tpl index 6aac78ca8..c6a7983ef 100755 --- a/plugins/gogs/hook/commit.tpl +++ b/plugins/gogs/hook/commit.tpl @@ -8,6 +8,9 @@ GIT_SDIR="{$CODE_DIR}" GIT_USER_DIR="${GIT_SDIR}/{$USERNAME}" GIT_PROJECT_DIR="${GIT_USER_DIR}/{$PROJECT}" + +git config --global credential.helper store + # echo $GIT_PROJECT_DIR if [ ! -d $GIT_PROJECT_DIR ];then mkdir -p $GIT_USER_DIR && cd $GIT_USER_DIR