ubuntu git钩子笔记
git配置钩子的时候,想在钩子结束触发新的脚本写日志,结果总是提示 sh: 0: can't open push2chat
原来在这里执行另外的sh需要用绝对路径
#!/bin/sh
#
# An example hook script to prepare a packed repository for use over
# dumb transports.
#
# To enable this hook, rename this file to "post-update".
#exec git update-server-info
export LANG=zh_CN.UTF-8
cd /data/svn/
unset GIT_DIR
git pull origin master
sh /data/repositories/svn.git/hooks/cp2chat