From 12de5f79f7976a6c1cb6965edc830a8d497ccfc7 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Thu, 27 Dec 2018 15:22:51 +0800 Subject: [PATCH] Update commit.tpl --- plugins/csvn/hook/commit.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/csvn/hook/commit.tpl b/plugins/csvn/hook/commit.tpl index d0d99ae00..d165f8fc3 100755 --- a/plugins/csvn/hook/commit.tpl +++ b/plugins/csvn/hook/commit.tpl @@ -28,7 +28,7 @@ fi cd $SAVE_PATH && svn update --username={$CSVN_USER} --password={$CSVN_PWD} --no-auth-cache --non-interactive WEB_PATH={$PROJECT_DIR}/wwwroot/$REPOS -mkdir -p $WEB_PATH +sudo mkdir -p $WEB_PATH -rsync -vauP --exclude=".*" $SAVE_PATH/ $WEB_PATH +sudo rsync -vauP --exclude=".*" $SAVE_PATH/ $WEB_PATH sudo chown -R www:www $WEB_PATH \ No newline at end of file