svn hooks同步更新
vi post-commitchmod +x post-commit#脚本内容如下#!/bin/sh#库路径REPOS="$1"#版本号REV="$2"#改动的文件changed=`svnlook changed -r $REV $REPOS | grep xxxxxxxx`if [ -n "$changed"];then cd /path svn --username=xxx --password=yyy updatefi
本文共 274 字,大约阅读时间需要 1 分钟。
vi post-commitchmod +x post-commit#脚本内容如下#!/bin/sh#库路径REPOS="$1"#版本号REV="$2"#改动的文件changed=`svnlook changed -r $REV $REPOS | grep xxxxxxxx`if [ -n "$changed"];then cd /path svn --username=xxx --password=yyy updatefi
转载于:https://my.oschina.net/xfan/blog/761664