Skip to content

Commit

Permalink
Update commit.tpl
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Feb 25, 2023
1 parent 659c9fe commit aa9cdaa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/gitea/hook/commit.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ if [ ! -d $WEB_PATH ];then
mkdir -p $WEB_PATH
rsync -vauP --delete --exclude=".*" $GIT_PROJECT_DIR/ $WEB_PATH
else
rsync -vauP --exclude=".*" $GIT_PROJECT_DIR/ $WEB_PATH
if [ -f $GIT_PROJECT_DIR/exclude.list ];then
rsync -vauP --delete --exclude-from="$GIT_PROJECT_DIR/exclude.list" $GIT_PROJECT_DIR/ $WEB_PATH
else
rsync -vauP --exclude=".*" $GIT_PROJECT_DIR/ $WEB_PATH
fi
fi

sysName=`uname`
Expand Down

0 comments on commit aa9cdaa

Please sign in to comment.