Cannot fetch whole history from Perforce

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]