The problem is in this line:
git p4 clone --use-client-spec //p4-git/@all
Here you're passing a client path (//p4-git
), but git-p4 expects a depot path. This causes problems later on when it tries to map Perforce depot paths to Git paths. Try running
git p4 clone --use-client-spec //depot/android/main/@all
instead.
Bear in mind that if you specify --use-client-spec
, git-p4 will automatically use your client spec, whichever one that is. It will also remember this choice and use it for future git-p4 commands. It's probably a good idea to:
- create a dedicated client for git-p4 work
- make sure
P4CLIENT
is set to this client whenever you use git-p4 - avoid changing the view of your git-p4 client