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

Re: git p4 clone not processing branches properly

From
Vitor Antunes <vitor.hda@gmail.com>
Date
Jul 13, 2013, 00:28 UTC
Message-ID
<CAOpHH-UBRJ08KEnUdGMy6F3eqUkUWSsnuDCCciUOHsg+4TpM2w@mail.gmail.com>
In-Reply-To
<CAHCaCkJDWTKQk4SrspXVCsCoHStRTaR_PSEgkvqwWHdmiLuY2w@mail.gmail.com>

On Mon, Jul 8, 2013 at 3:03 PM, Matthieu Brucher <matthieu.brucher@gmail.com> wrote:

Show 15 quoted lines
> Hi,
>
> I tried without spec, but then it tried importing everything, even
> though there was a .gitignore and a .git/config/exclude file.
> Then, it crashed during the importation because it could find an old
> branch (I don't have access to everything on the repository), so I
> tried importing just the recent past, but then it failed because it
> identified a branch names Branch/Main/src...
> It is starting to feel as if I will have to compromise between
> something that works but without branches and without the proper names
> (the files are named Project/Branch/Main/...) or having the proper
> names, but with all binaries, bogus branches...
> I know it is not due to git, it is mainly that Perforce and git have
> very different workflows. Or perhaps with any luck, the server is up
> to date, and I can find a way of using Perforce's bridge.
Hi Matthieu,

I created a simple test case where I added a file to one of the branches in P4 but excluded it in the client spec. During synchronization git p4 correctly ignored it.

Please check which git version you are using. It is possible the issue you are experiencing was fixed in a more recent version.

Also, if possible, please try creating a simple test case that replicates your issue (p4 and p4d are free to use when the repo is only used by one person). If you record the commands you used and share them with me I will be able to better check this issue on my side.

Cheers, Vitor

Previous: Matthieu Brucher
Message 12 of 12 in “Re: git p4 clone not processing branches properly”
  1. Matthieu BrucherJul 5, 2013
  2. Vitor AntunesJul 5, 2013
  3. Matthieu BrucherJul 5, 2013
  4. Vitor AntunesJul 5, 2013
  5. Matthieu BrucherJul 5, 2013
  6. Matthieu BrucherJul 8, 2013
  7. Vitor AntunesJul 8, 2013
  8. Matthieu BrucherJul 8, 2013
  9. Matthieu BrucherJul 8, 2013
  10. Vitor AntunesJul 8, 2013
  11. Matthieu BrucherJul 8, 2013
  12. Vitor AntunesJul 13, 2013

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.