git p4用 - 检测 - 分支克隆分支的错误
当我尝试从Perforce检测分支时,我会得到以下提到的错误。
git p4 clone --detect-branches //depot/path/abc_987/migration/@all
我收到的错误是
unicodedecodeerror:'utf-8'编解码器无法在位置0中解码字节0xc4:无效延续字节
是什么问题?
When I trying to detect branches from Perforce I am getting the below mentioned error.
git p4 clone --detect-branches //depot/path/abc_987/migration/@all
The error I am receiving is
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc4 in position 0: invalid continuation byte
what is the problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
git P4
期望您的P4项目使用Unicode。 期望也许有点太强了,但是如果它确实使用Unicode,您会没事的。您不正确,这意味着您不使用Unicode。在 ,Tao Klerks添加了许多改进到
git p4
编码处理。但是,这似乎并未在任何地方发布(现有的git标签都包含此提交,尽管它在Master
分支中)。不过,您可能需要克隆git存储库,并在存储库上尝试master
分支的代码。git p4
expects your P4 project to use Unicode. Expects is perhaps a bit too strong, but if it does use Unicode, you'll be fine. You aren't fine which means you are not using Unicode.In commit
f7b5ff607fa1a62a480399afb6ccb9691735bf79
, Tao Klerks added a number of improvements to thegit p4
encoding handling. However, this does not appear to be released anywhere (no existing Git tag contains this commit, though it's in themaster
branch). You might want to clone the Git repository for Git and try themaster
branch's code on your repository, though.