diff --git a/plugins/csvn/hook/commit.tpl b/plugins/csvn/hook/commit.tpl index d165f8fc3..886abed28 100755 --- a/plugins/csvn/hook/commit.tpl +++ b/plugins/csvn/hook/commit.tpl @@ -30,5 +30,5 @@ cd $SAVE_PATH && svn update --username={$CSVN_USER} --password={$CSVN_PWD} --no- WEB_PATH={$PROJECT_DIR}/wwwroot/$REPOS sudo mkdir -p $WEB_PATH -sudo rsync -vauP --exclude=".*" $SAVE_PATH/ $WEB_PATH +sudo rsync -vauP --delete --exclude=".*" $SAVE_PATH/ $WEB_PATH sudo chown -R www:www $WEB_PATH \ No newline at end of file