# git-p4: submit to blank p4 repository help please

1 messages from 2009-06-04 to 2009-06-04. Participants: Reynolds, Stephen (GE EntSol, Intelligent Platforms).
Thread: https://gitlist.dev/t/19659

## Reynolds, Stephen (GE EntSol, Intelligent Platforms), 2009-06-04 07:16

Subject: git-p4: submit to blank p4 repository help please
Message-ID: <F61C2CF29BF32C4A805C6C029452B92004756039@LONMLVEM06.e2k.ad.ge.com>
URL: https://gitlist.dev/e/F61C2CF29BF32C4A805C6C029452B92004756039%40LONMLVEM06.e2k.ad.ge.com

```
Hi

There was some discussion of this under the topic "bug in git-p4?" but I
could see no resolution so I am putting the question out again.

Git-p4 does not seem to work (for me at least) when you try to submit a
git repository to a blank p4 repository. It seems that you have to have
pulled your git repository from p4 originally in order for it to work?

This is the kind of thing I have typically been trying  

git-p4 clone //depot/firmware/fred/bloggs.git

(//depot/firmware/fred/bloggs.git is a folder synced to an empty p4
repository)

cd bloggs

(there is now an empty git repository here)

If I then pull from a git repository into the newly created bloggs.git
and do git-p4 submit 

I get...

Syncronizing p4 checkout...
... - file(s) up-to-date.
Applying 0b666f81da14bf46cada222856762f7fd6641c26 Initial revision

fatal: ambiguous argument '0b666f81da14bf46cada222856762f7fd6641c26^':
unknown revision or path not in the working tree.
Use '--' to separate paths from revisions
Command failed: git diff-tree -r
"0b666f81da14bf46cada222856762f7fd6641c26^"
"0b666f81da14bf46cada222856762f7fd6641c26"


I have tried to checkout pre-existing files from P4, change them in git
and put them back and that works fine.

I am using the git 1.6.3.1.fc9 rpms with the git-p4 taken from the
git-1.6.3.1 source tree.


Thanks for your help

Steve

```
