svn钩子

在项目库的 hooks/ 目录下新建 post-commit 文件 【钩子脚本】

 

#!/bin/sh

EPOS="$1"
REV="$2"

#mailer.py commit "$REPOS" "$REV" /path/to/mailer.conf

svn=/usr/bin/svn
www=/usr/local/html/admin
export LANG=en_US.UTF-8
$svn update $www --username simple --password Caicaile2017svn >/dev/null 2>&1 &

posted @ 2019-05-16 08:24  西伯利亚狼520  阅读(55)  评论(0)    收藏  举报