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

Re: [GIT-P4] usage under Windows

From
Marius Storm-Olsen <marius@trolltech.com>
Date
Mar 1, 2008, 15:53 UTC
Message-ID
<47C97C03.8040303@trolltech.com>
In-Reply-To
<B929D1FF-BAF7-4595-9DAF-07E62B90D767@gmail.com>
Tor Arvid Lund wrote:
Show 16 quoted lines
> On 29. feb.. 2008, at 19.48, Maxim Gordienko wrote:
>> Synchronizing p4 checkout... executing p4 sync ... Path
>> 'c:/tmp/p42/main\...' is not under client's root 'c:\p4'.
> 
> I have seen it too. I'm not sure, but it seems to me like even though
> the git-p4 script does a chdir(<perforce_dir>) before calling "p4 
> <command> <args>" the chdir is "not seen by" p4 on windows.
> 
> I have a patch on my machine where i simply change all the p4 calls,
> like so:
> 
> system("p4 sync ...") --> system("p4 sync %s..." % self.clientPath)
> 
> This seems to work in all cases, and also in Mac OS X... I can
> probably clean the patch up a bit, and submit it later today or
> tomorrow if you're interested.
It must mean that you initially didn't have the perforce files synced to 
disk according to you client spec, so the command to 'cd' into the 
perforce directory failed? I think this problem is solved by just doing a
     p4 sync //depot/...
to make sure that all the files exists on disk, before trying the 'git 
p4 submit' again.

git-p4 does not require checked out files to clone from perforce, but requires the files to exist on disk to be able to submit back to the depot.

-- .marius

Previous: Tor Arvid LundNext: Maxim Gordienko
Message 8 of 9 in “[GIT-P4] usage under Windows”
  1. Maxim GordienkoFeb 22, 2008
  2. Marius Storm-OlsenFeb 27, 2008
  3. Maxim GordienkoFeb 29, 2008
  4. Marius Storm-OlsenFeb 29, 2008
  5. Maxim GordienkoMar 1, 2008
  6. Marius Storm-OlsenMar 1, 2008
  7. Tor Arvid LundMar 1, 2008
  8. Marius Storm-OlsenMar 1, 2008
  9. Maxim GordienkoMar 3, 2008

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.