• 1 
瀏覽模式: 普通 | 列表

檔案庫名稱/hooks 底下有一些 .tmpl 的檔案

將 post-commit.tmpl 另 copy 新檔為 post-commit

改權限 chmod +x post-commit

編輯 post-commit

#!/bin/sh
export LANG=zh_TW.UTF-8

REPOS="$1"
REV="$2"

/實際路徑/commit-email.pl "$REPOS" "$REV" -h localhost --from "svn@`hostname`" -s "SVN commit" cross@ssorc.tw

# commit-email.pl 這支程式在 SVN 的 tarball 裡面找得到
# -h 使用 localhost 寄信
# --from 寄件者
# -s 主旨
# 最後就是收件者了

信長這樣子

[閱讀全文]

  • 1