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

Cannot fetch whole history from Perforce

From
Anatol Pomozov <anatol.pomozov@gmail.com>
Date
Mar 8, 2011, 18:09 UTC
Message-ID
<AANLkTik6fxHUJbp6dWdAgV-wr=P=FxK1K-vGAGy8ruBd@mail.gmail.com>

Hi, I am using HEAD version of the git and I have an issue with git-p4 tool (p4 to git importer).

git-p4 works fine when I import HEAD version of my project

$ git p4 clone //depot/foo/bar --verbose Importing from //depot/foo/bar into bar Reinitialized existing Git repository in /home/anatol/tmp/bar/.git/ Reading pipe: git config git-p4.useclientspec Doing initial import of //depot/foo/bar/ from revision #head into refs/remotes/p4/master Reading pipe: git config git-p4.user Reading pipe: git config git-p4.password Reading pipe: git config git-p4.port Reading pipe: git config git-p4.host Reading pipe: git config git-p4.client p4 -G files //depot/foo/bar/...#head Opening pipe: p4 -G files //depot/foo/bar/...#head commit into refs/remotes/p4/master p4 -G users Opening pipe: p4 -G users p4 -G -x - print Opening pipe: p4 -G -x - print ...A bunch of files... executing git branch master refs/remotes/p4/master executing git checkout -f

But it fails with a cryptic error when I try to import @all revisions:
$ git p4 clone //depot/foo/bar@all --verbose
Importing from //depot/foo/bar@all into bar
Initialized empty Git repository in /home/anatol/tmp/bar/.git/
Reading pipe: git config git-p4.useclientspec
Traceback (most recent call last):
  File "/home/anatol/bin/git-p4", line 2033, in <module>
    main()
  File "/home/anatol/bin/git-p4", line 2028, in main
    if not cmd.run(args):
  File "/home/anatol/bin/git-p4", line 1904, in run
    if not P4Sync.run(self, depotPaths):
  File "/home/anatol/bin/git-p4", line 1767, in run
    die("No remote p4 branches.  Perhaps you never did \"git p4
clone\" in here.");
  File "/home/anatol/bin/git-p4", line 59, in die
    raise Exception(msg)
Exception: No remote p4 branches.  Perhaps you never did "git p4 clone" in here.

Can it be related to Pete's changes? http://permalink.gmane.org/gmane.comp.version-control.git/167281

Next: Thomas Berg
Message 1 of 4 in “Cannot fetch whole history from Perforce”
  1. Anatol PomozovMar 8, 2011
  2. Thomas BergMar 8, 2011
  3. Tor Arvid LundMar 8, 2011
  4. Anatol PomozovMar 12, 2011

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.