phabricator arc diff --raw-command 报错:500 - 服务器错误

phabricator生成diff报错:

arcanist/bin/arc diff --raw-command ‘git diff origin/master origin/xxxxxx -U20000’
报错:
Exception
[HTTP/500] Internal Server Error
500 - 服务器错误
追查原因是有个文件的编码格式是 ISO-8859
file xx/xx.conf
xx/xx.conf: ISO-8859 text, with CRLF line terminators

可以在Vim界面上直接转换文件编码,如转换成utf-8:
:set fileencoding=utf-8

或者使用文本编辑器也可以

再次执行问题解决了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章