Update commit.tpl

This commit is contained in:
Mr Chen
2024-08-16 13:35:34 +08:00
parent a1f9c023c7
commit 7464789c8c
+6
View File
@@ -16,6 +16,10 @@ fi
git config --global credential.helper store
git config --global pull.rebase false
if [ ! -d $GIT_PROJECT_DIR ];then
git config --global --add safe.directory $GIT_PROJECT_DIR
fi
# echo $GIT_PROJECT_DIR
if [ ! -d $GIT_PROJECT_DIR ];then
mkdir -p $GIT_USER_DIR && cd $GIT_USER_DIR
@@ -24,6 +28,8 @@ fi
unset GIT_DIR
cd $GIT_PROJECT_DIR && git pull
# func 2