解決svn錯誤:post-commit hook failed (exit code 1) with output


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)





免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM