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

Re: git-p4 and git clone

From
BMBenjamin Meyer <ben@meyerhome.net>
Date
Mar 23, 2010, 00:15 UTC
Message-ID
<4880E32B-7880-40BF-8AFD-AC00DA457CEE@meyerhome.net>
In-Reply-To
<B978892CA0FBD142827E74F92AC4BBD429B2444D4D@HQMAIL03.nvidia.com>
On Mar 22, 2010, at 7:16 PM, Thomas Kistler wrote:
Show 19 quoted lines
> I'm probably missing something fairly fundamental but I'm running into problems with cloning a git-p4 repository:
> 
> First, I'm setting up a git-p4 master repository:
> 
>    $ cd tmp1
>    $ git-p4 clone //foo/bar
> 
> Then I'm cloning it through git:
> 
>    $ cd tmp2
>    $ git clone tmp1/bar
> 
> Finally, I'm trying to submit back to p4:
> 
>    $ git-p4 submit
> 
> This now fails because the remotes/p4/master seems to get lost when doing the "git clone". Is this supposed to work?
> 
> -Thomas
There is a -import-local option you can use.  Then the p4/master branch is local and when you do the second clone you will get the p4/master branch.
-Benjamin Meyer
Previous: Thomas KistlerNext: Thomas Kistler
Message 2 of 7 in “git-p4 and git clone”
  1. Thomas KistlerMar 22, 2010
  2. Benjamin MeyerMar 23, 2010
  3. Thomas KistlerMar 23, 2010
  4. Tor Arvid LundMar 23, 2010
  5. Thomas KistlerMar 23, 2010
  6. Tor Arvid LundMar 23, 2010
  7. cherry pick into remote / git-p4Thomas Kistler, Apr 8, 2010

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.