방대한 웹 번역 자료
기타 / 2014. 10. 7. 16:15
https://github.com/nolboo/nolboo.github.io/wiki
window 에서도 tail...
http://www.windows-commandline.com/tail-command-for-windows/
1. pre-commit 파일 작성
cd ~Repository/hooks/
cp pre-commit.tmpl pre-commit
2. 작성 내용
REPOS="$1"
TXN="$2"
# Make sure that the log message contains some text.
SVNLOOK=/usr/bin/svnlook
LOGMSG=$($SVNLOOK log -t "$TXN" "$REPOS" | grep [a-zA-Z0-9] | wc -c)
if [ "$LOGMSG" -lt 5 ]; then
/bin/echo -n "(Empty commit log) & (length(log) < 5) is NOT ALLOWED" 1>&2
exit 1
fi
exit 0