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

Re: git to p4 conversion

From
Endre Czirbesz <endre@czirbesz.hu>
Date
Feb 4, 2011, 16:08 UTC
Message-ID
<AANLkTi=dZdSqcNckyU7Lb2Zj-khfj=Xiyzbv7LSC+zT2@mail.gmail.com>
In-Reply-To
<AANLkTi=_spLE-KMnou-2LLQjwq4FUZxNr9pk7D9C=4PK@mail.gmail.com>
2011/2/4 Tor Arvid Lund <torarvid@gmail.com>:
> Well, I can get it to work if I do:
> $ git p4 sync
>
> before the 'git p4 submit'.
Same result. :(
My current workflow is:

$ rm -rf projdir $ git-p4 clone //depot/projdir/...@all $ cd projdir $ git remote add gitremote endre@gitserver/gitrepo.git $ git fetch -q gitremote $ git checkout -b tempbranch gitremote/master $ git rebase -q master $ git-p4 sync $ git-p4 submit

The result is still tons of file already exists in working directory messages.
> Try that, and see if it works for you. (BTW, when committing
> half-works, and then fails, oftentimes you need to do a bit of cleanup
> in perforce... Revert files, manually remove files created by git
> inside your p4 clientspec root directory, that sort of thing...)

I dropped the whole directory, and then recreated it, I do not know any better 'cleanup'. :)

Rgds,
Endre
Previous: Tor Arvid LundNext: Endre Czirbesz
Message 8 of 14 in “git to p4 conversion”
  1. Endre CzirbeszFeb 3, 2011
  2. Ian WienandFeb 3, 2011
  3. Endre CzirbeszFeb 3, 2011
  4. Vitor AntunesFeb 4, 2011
  5. Tor Arvid LundFeb 4, 2011
  6. Endre CzirbeszFeb 4, 2011
  7. Tor Arvid LundFeb 4, 2011
  8. Endre CzirbeszFeb 4, 2011
  9. Endre CzirbeszFeb 4, 2011
  10. Tor Arvid LundFeb 5, 2011
  11. Vitor AntunesFeb 5, 2011
  12. Endre CzirbeszFeb 7, 2011
  13. Tor Arvid LundFeb 7, 2011
  14. Endre CzirbeszFeb 7, 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.