I have a git repository that I would like to reflect in the Perforce repository. I downloaded the git -p4 script (a later version that does not give warnings about obsolescence), and worked with that. I figured out how to pull changes from Perforce, but I get an error when I try to sync changes from git repository. Here is what I have done so far:
git clone git@github.com:asdf/qwerty.git
git-p4 sync //depot/path/to/querty
git merge remotes/p4/master (there was a single README file...)
So, I copied the source into a clean, new director, getting a beautiful collapsed file tree, and it git statusshows that I have been updated. But:
> git-p4 submit
fatal: Not a valid object name HEAD~261
Command failed: git cat-file commit HEAD~261
This thread on the git mailing list seems relevant, but I can't figure out what they do with all A, B and Cs. Can someone clarify what “Invalid object name” means and what can I do to fix this problem? All I want to do is periodically lower the initial / initial value in Perforce; full story is not required. Thank.
source
share