git-p4: submit to blank p4 repository help please

From: Reynolds, Stephen (GE EntSol, Intelligent Platforms) <hidden>
Date: 2016-06-15 22:46:54

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help