* [git-p4] Can't submit: Something I do in a wrong way.
@ 2008-11-19 21:00 Evgeniy Ivanov
2008-11-19 22:16 ` Evgeniy Ivanov
0 siblings, 1 reply; 2+ messages in thread
From: Evgeniy Ivanov @ 2008-11-19 21:00 UTC (permalink / raw)
To: git
Hi list,
I need a help with git-p4.
There are //1, //2, //3 in perforce's depot, and /dir1 is a client's root.
So:
Root: /dir1/
//1/... //client/1... etc
I've checkouted //1, //2 and //3.
In /git I did "git clone //1; git clone //2", So I have /git/1, /git/2.
Now I run in /git/1 "git-p4 submit commitBr" and choose 'y' to sync,
where comitBr has one more commit than master.
I get "Path /git/1/... is not under client's root /dir1/". Without
syncing it says I have opened files, but when I do in /dir1/1 "p4 -a
revert" I get: "file(s) not opened on this client".
Looks like "git-p4 rebase" works fine.
Also I tried to keep git in the same dir as perforce workspace: I did 1
commit and then failed to do anything, because got strange conflicts.
P.S. Please don't forget to keep me in CC :)
--
Cheers, Evgeniy.
Key fingerprint: F316 B5A1 F6D2 054F CD18 B74A 9540 0ABB 1FE5 67A3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [git-p4] Can't submit: Something I do in a wrong way.
2008-11-19 21:00 [git-p4] Can't submit: Something I do in a wrong way Evgeniy Ivanov
@ 2008-11-19 22:16 ` Evgeniy Ivanov
0 siblings, 0 replies; 2+ messages in thread
From: Evgeniy Ivanov @ 2008-11-19 22:16 UTC (permalink / raw)
Cc: git
Retried and noticed that if I do:
/dir1/1> git-p4 submit --git-dir=../../git/1/ --origin=master
Then everything works fine. Strange, but docs say:
"This requires a Perforce checkout separate to your git
repository. To submit all changes that are in the current git branch but
not in
the "p4" branch (or "origin" if "p4" doesn't exist) simply call
git-p4 submit
in your git repository."
And my approach is a bit vice versa.
Any suggestions? I can go with it, but I want almost forget about thing
that I have perforce :)
Evgeniy Ivanov wrote:
> Hi list,
> I need a help with git-p4.
>
> There are //1, //2, //3 in perforce's depot, and /dir1 is a client's root.
> So:
> Root: /dir1/
> //1/... //client/1... etc
> I've checkouted //1, //2 and //3.
>
> In /git I did "git clone //1; git clone //2", So I have /git/1, /git/2.
> Now I run in /git/1 "git-p4 submit commitBr" and choose 'y' to sync,
> where comitBr has one more commit than master.
> I get "Path /git/1/... is not under client's root /dir1/". Without
> syncing it says I have opened files, but when I do in /dir1/1 "p4 -a
> revert" I get: "file(s) not opened on this client".
> Looks like "git-p4 rebase" works fine.
>
> Also I tried to keep git in the same dir as perforce workspace: I did 1
> commit and then failed to do anything, because got strange conflicts.
>
>
> P.S. Please don't forget to keep me in CC :)
>
>
--
Cheers, Evgeniy.
Key fingerprint: F316 B5A1 F6D2 054F CD18 B74A 9540 0ABB 1FE5 67A3
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-19 22:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-19 21:00 [git-p4] Can't submit: Something I do in a wrong way Evgeniy Ivanov
2008-11-19 22:16 ` Evgeniy Ivanov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox