1

我正在尝试使用 Git-P4 使项目的日常更改更容易一些。当我进入git p4 克隆阶段时,在 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 print 命令?社区中的其他人遇到此错误吗?和/或有建议吗?

编辑 输出示例

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]
4

1 回答 1

0

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

于 2015-06-04T20:07:30.353 回答