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