git p4 clone failure:ValueError错误的编组数据

时间:2015-04-15 15:42:48

标签: git perforce git-p4

我正在尝试使用Git-P4让项目的日常更改变得更容易一些。当我来到 git p4 clone 阶段时遵循Git wiki中的Git-p4用法,我收到以下错误(故意删除路径):

Importing from //****/****/mainline@all into mainline
Initialized empty Git repository in /****/****/.git/
Traceback (most recent call last):
File "/****/****/git/2.3.5/libexec/git-core/git-p4", line 3297, 
  in ? main()
File "/****/****/git/2.3.5/libexec/git-core/git-p4", line 3291, 
  in main if not cmd.run(args):
File "/****/****/git/2.3.5/libexec/git-core/git-p4", line 3165, 
  in run if not P4Sync.run(self, depotPaths):
File "/****/****/git/2.3.5/libexec/git-core/git-p4", line 2927, 
  in run self.loadUserMapFromCache()
File "/****/****/git/2.3.5/libexec/git-core/git-p4", line 908, 
 in loadUserMapFromCache self.getUserMapFromPerforceServer()
File "/****/****/git/2.3.5/libexec/git-core/git-p4", line 883, 
    in getUserMapFromPerforceServer for output in p4CmdList("users"):
File "/****/****/git/2.3.5/libexec/git-core/git-p4", line 480, in p4CmdList
  entry = marshal.load(p4.stdout)
ValueError: bad marshal data`

不确定这是否意味着我必须更改p4打印命令?社区中的其他任何人都遇到此错误?和/或有建议吗?

修改 输出示例

p4 users
a00000 <someone@email.com>             (Someone Name) accessed 2015/05/01 15:26:31, updated 2008/11/15 14:00:25, pwd [enabled]
faken  <another@email.com>       (Someones Name(CON)) accessed 2015/05/01 15:26:31, updated 2008/11/15 14:00:25, pwd [NOT SET]

1 个答案:

答案 0 :(得分:0)

Git-p4直接依赖于p4命令,因此不能在其位置使用包装脚本。如果需要这样的包装器脚本,那么它至少应该能够正确地将-G参数传递给基础p4调用。最好还应支持所有p4命令。