git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git-p4: exception when cloning a perforce repository

From
DGDamien Gérard <damien@iwi.me>
Date
Jan 13, 2014, 13:37 UTC
Message-ID
<01EF41A4-533B-4A24-8952-CAEB49970272@iwi.me>
Hi !
I am trying to clone a perforce repository via git and I am having the following backtrace :
{14:20}~/projects/####:master ✗ ➭ git p4 clone //depot/@all .
Importing revision …
[...]
Importing revision 59702 (45%)Traceback (most recent call last):
  File "/opt/git/libexec/git-core/git-p4", line 3287, in <module>
    main()
  File "/opt/git/libexec/git-core/git-p4", line 3281, in main
    if not cmd.run(args):
  File "/opt/git/libexec/git-core/git-p4", line 3155, in run
    if not P4Sync.run(self, depotPaths):
  File "/opt/git/libexec/git-core/git-p4", line 3008, in run
    self.importChanges(changes)
  File "/opt/git/libexec/git-core/git-p4", line 2680, in importChanges
    self.initialParent)
  File "/opt/git/libexec/git-core/git-p4", line 2304, in commit
    self.streamP4Files(new_files)
  File "/opt/git/libexec/git-core/git-p4", line 2218, in streamP4Files
    cb=streamP4FilesCbSelf)
  File "/opt/git/libexec/git-core/git-p4", line 482, in p4CmdList
    cb(entry)
  File "/opt/git/libexec/git-core/git-p4", line 2212, in streamP4FilesCbSelf
    self.streamP4FilesCb(entry)
  File "/opt/git/libexec/git-core/git-p4", line 2167, in streamP4FilesCb
    self.streamOneP4File(self.stream_file, self.stream_contents)
  File "/opt/git/libexec/git-core/git-p4", line 2078, in streamOneP4File
    if data[-1] == '\n':
IndexError: string index out of range

git —version: git version 1.8.5.2.309.ga25014b [last commit from master from github.com/git/git] os : ubuntu 13.10

Any ideas ? :)

Best regards, Damien

Next: Pete Wyckoff
Message 1 of 11 in “git-p4: exception when cloning a perforce repository”
  1. Damien GérardJan 13, 2014
  2. Pete WyckoffJan 14, 2014
  3. Pete WyckoffJan 14, 2014
  4. Damien GérardJan 15, 2014
  5. Pete WyckoffJan 16, 2014
  6. Damien GérardJan 16, 2014
  7. Pete WyckoffJan 16, 2014
  8. Damien GérardJan 16, 2014
  9. Pete WyckoffJan 18, 2014
  10. Damien GérardJan 20, 2014
  11. Damien GérardJan 20, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.