依旧sunshine

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

解决svn错误:post-commit hook failed (exit code 1) with output.

转自:http://blog.sina.com.cn/s/blog_4b93170a0100ml79.html#cmt_2646080

svn客户端post-commit时,出现如下错误

post-commit hook failed (exit code 1) with output.

[Error output could not be translated from the native locale to UTF-8.]

 

解决方法:

其实上述错误是一个错误,执行post-commit脚本时文字编码造成的

 

在版本库hooks/post-commit文件中

原来是#export LANG=zh_CN.GBK
修改为export LANG=en_US.UTF-8即可(svn服务器默认是utf8)

posted on 2014-05-06 13:05  依旧sunshine  阅读(3976)  评论(0)    收藏  举报