预备知识:需要了解shell脚本编写,这里只简单做了个更新的操作。
linux svn版本库文件下 /usr/local/svn/trunk/hooks
vi post-commit
svn=/usr/bin/svn #svn安装路径
web=/home/www/html/ #web目录
$svn update $web --username username --password password
:wq
./post-commit 即可测试效果
预备知识:需要了解shell脚本编写,这里只简单做了个更新的操作。
linux svn版本库文件下 /usr/local/svn/trunk/hooks
vi post-commit
svn=/usr/bin/svn #svn安装路径
web=/home/www/html/ #web目录
$svn update $web --username username --password password
:wq
./post-commit 即可测试效果
转载于:https://my.oschina.net/stevenhu/blog/492842