git p4 clone says “No changes to import!”
I’m trying to use git-p4 for the first time ever, and I can’t get it to clone my depot. Instead, I am seeing this:
git p4 clone – failure accessing depot: could not run p4
I am having trouble cloning a Perforce depot using git p4 clone.
I am running the following command:
Git P4 – git p4 remote and p4 disagree on some files
I have a project using Perforce, and I’ve grown tired of struggling with it, so I have a local git repository overlaying my P4 workspace that I track changes in. However, at some point two binaries were submitted to P4 and somehow git-p4 failed to pick them up properly, and now my git commit history and P4 changelist history don’t agree on those files. git p4 rebase
will succeed, but the files will then show up as modified in perforce, and then reverting the files in P4 will make them show up as modified in git, even though git p4 insists that it’s up to date. Now, every time I want to run git p4 submit
, I first have to go into P4, revert those two files, run the submit, and then git reset --hard p4/master
every time. This is frustrating, but I don’t know how to force my git repo back into sync with perforce without either re-cloning the whole thing or committing what git thinks the files are and possibly corrupting them somehow.