当我试图使用windows上的gitbash将代码提交给gerrit时,会出现一个错误。错误如下:
$ git review
You are about to submit multiple commits. This is expected if you are
submitting a commit that is dependent on one or more in-review
commits. Otherwise you should consider squashing your changes into one
commit before submitting.
Traceback (most recent call last):
File "c:\Python33\Scripts\git-review-script.py", line 9, in <module>
load_entry_point('git-review==1.24', 'console_scripts', 'git-review')()
File "C:\Python33\lib\site-packages\git_review\cmd.py", line 1214, in main
assert_one_change(remote, branch, yes, have_hook)
File "C:\Python33\lib\site-packages\git_review\cmd.py", line 718, in assert_on
e_change
"Do you really want to submit the above commits?" % output)
File "C:\Python33\lib\encodings\cp850.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_map)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2026' in position
8042: character maps to <undefined>进程中止发送错误消息。此外,git-审查版本如下:
$ git review --version
git-review-script.py version 1.24另外,我的windows机器上的git版本是:
git version 1.9.4.msysgit.1我迫切需要帮助或任何关于如何让这件事起作用的线索。
在我的cmd.exe上显示的字符编码是850。
https://stackoverflow.com/questions/25680921
复制相似问题