{"thread":{"id":"16401","subject":"[git-p4] Can't submit: Something I do in a wrong way.","startedAt":"2008-11-19T21:00:13Z","lastAt":"2008-11-19T22:16:40Z","messageCount":2,"participants":["Evgeniy Ivanov"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"96188","messageId":"49247E5D.7070601@gmail.com","threadId":"16401","inReplyTo":null,"subject":"[git-p4] Can't submit: Something I do in a wrong way.","fromName":"Evgeniy Ivanov","fromEmail":"lolkaantimat@gmail.com","sentAt":"2008-11-19T21:00:13Z","receivedAt":"2008-11-19T21:00:13Z","isPatch":false,"sender":{"key":"lolkaantimat@gmail.com","avatar":null},"body":"Hi list,\nI need a help with git-p4.\n\nThere are //1, //2, //3 in perforce's depot, and /dir1 is a client's root.\nSo:\nRoot:   /dir1/\n//1/... //client/1... etc\nI've checkouted //1, //2 and //3.\n\nIn /git I did \"git clone //1; git clone //2\", So I have /git/1, /git/2.\nNow I run in /git/1 \"git-p4 submit commitBr\" and choose 'y' to sync,\nwhere comitBr has one more commit than master.\nI get \"Path /git/1/... is not under client's root /dir1/\". Without\nsyncing it says I have opened files, but when I do in /dir1/1 \"p4 -a\nrevert\" I get: \"file(s) not opened on this client\".\nLooks like \"git-p4 rebase\" works fine.\n\nAlso I tried to keep git in the same dir as perforce workspace: I did 1\ncommit and then failed to do anything, because got strange conflicts.\n\n\nP.S. Please don't forget to keep me in CC :)\n\n\n-- \nCheers, Evgeniy.\nKey fingerprint: F316 B5A1 F6D2 054F CD18 B74A 9540 0ABB 1FE5 67A3\n"},{"id":"96190","messageId":"49249048.5030504@gmail.com","threadId":"16401","inReplyTo":"49247E5D.7070601@gmail.com","subject":"Re: [git-p4] Can't submit: Something I do in a wrong way.","fromName":"Evgeniy Ivanov","fromEmail":"lolkaantimat@gmail.com","sentAt":"2008-11-19T22:16:40Z","receivedAt":"2008-11-19T22:16:40Z","isPatch":false,"sender":{"key":"lolkaantimat@gmail.com","avatar":null},"body":"Retried and noticed that if I do:\n/dir1/1> git-p4 submit --git-dir=../../git/1/ --origin=master\nThen everything works fine. Strange, but docs say:\n\"This requires a Perforce checkout separate to your git\nrepository. To submit all changes that are in the current git branch but\nnot in\nthe \"p4\" branch (or \"origin\" if \"p4\" doesn't exist) simply call\n\n    git-p4 submit\n\nin your git repository.\"\nAnd my approach is a bit vice versa.\nAny suggestions? I can go with it, but I want almost forget about thing\nthat I have perforce :)\n\n\nEvgeniy Ivanov wrote:\n> Hi list,\n> I need a help with git-p4.\n> \n> There are //1, //2, //3 in perforce's depot, and /dir1 is a client's root.\n> So:\n> Root:   /dir1/\n> //1/... //client/1... etc\n> I've checkouted //1, //2 and //3.\n> \n> In /git I did \"git clone //1; git clone //2\", So I have /git/1, /git/2.\n> Now I run in /git/1 \"git-p4 submit commitBr\" and choose 'y' to sync,\n> where comitBr has one more commit than master.\n> I get \"Path /git/1/... is not under client's root /dir1/\". Without\n> syncing it says I have opened files, but when I do in /dir1/1 \"p4 -a\n> revert\" I get: \"file(s) not opened on this client\".\n> Looks like \"git-p4 rebase\" works fine.\n> \n> Also I tried to keep git in the same dir as perforce workspace: I did 1\n> commit and then failed to do anything, because got strange conflicts.\n> \n> \n> P.S. Please don't forget to keep me in CC :)\n> \n> \n\n\n-- \nCheers, Evgeniy.\nKey fingerprint: F316 B5A1 F6D2 054F CD18 B74A 9540 0ABB 1FE5 67A3\n"}]}