* git-p4 under cygwin
@ 2012-01-03 15:32 Paul Chown
2012-01-03 15:54 ` Thomas Berg
2012-01-03 16:07 ` Thomas Berg
0 siblings, 2 replies; 4+ messages in thread
From: Paul Chown @ 2012-01-03 15:32 UTC (permalink / raw)
To: git
I'm trying to use git-p4 to push changes from git into a Perforce repository under Cygwin, using the cygwin git installation. I followed the instructions at http://kb.perforce.com/article/1417/git-p4 and everything works fine until I do the final 'git p4 submit'.
During the submit command I get the following error:
Path '/cygdrive/c/work/perforce/config_test\...' is not under client's root 'c:\work\perforce\config_test'.
Traceback (most recent call last):
File "/usr/local/bin/git-p4", line 2371, in <module>
main()
File "/usr/local/bin/git-p4", line 2366, in main
if not cmd.run(args):
File "/usr/local/bin/git-p4", line 1130, in run
p4_sync("...")
File "/usr/local/bin/git-p4", line 137, in p4_sync
p4_system(["sync", path])
File "/usr/local/bin/git-p4", line 131, in p4_system
subprocess.check_call(real_cmd, shell=expand)
File "/usr/lib/python2.6/subprocess.py", line 498, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['p4', 'sync', '...']' returned non-zero exit status 1
Is there are recommended approach for using git-p4 on Windows? I also tried using the non-Cygwin installations of git, but these don't seem to have any Python support in them, so the git-p4 code won't run at all.
Many thanks in advance
Paul Chown
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git-p4 under cygwin
2012-01-03 15:32 git-p4 under cygwin Paul Chown
@ 2012-01-03 15:54 ` Thomas Berg
2012-01-03 16:07 ` Thomas Berg
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Berg @ 2012-01-03 15:54 UTC (permalink / raw)
To: Paul Chown; +Cc: git
On Tue, Jan 3, 2012 at 4:32 PM, Paul Chown <pmchown@yahoo.co.uk> wrote:
> Is there are recommended approach for using git-p4 on Windows? I also tried using the non-Cygwin installations of git, but these don't seem to have any Python support in them, so the git-p4 code won't run at all.
I'm not sure, but the error may not be a cygwin related problem at
all, it could be a pure git-p4 usage issue. Do you have a perforce
workspace set up, and do you have the affected files mapped into your
workspace so git-p4 can run p4 sync on them?
Other than that, git-p4 works excellently with the regular msysgit
too. Just install python the regular way on Windows (under C:\Python27
for example) and add it to your path. This python runs just fine in
the MinGW shell too (I think it picks up any PATH changes you make in
Windows). Then just download the git-p4 python script and make sure it
is in your path. This is how I use it.
- Thomas Berg
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git-p4 under cygwin
2012-01-03 15:32 git-p4 under cygwin Paul Chown
2012-01-03 15:54 ` Thomas Berg
@ 2012-01-03 16:07 ` Thomas Berg
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Berg @ 2012-01-03 16:07 UTC (permalink / raw)
To: Paul Chown; +Cc: git
On Tue, Jan 3, 2012 at 4:32 PM, Paul Chown <pmchown@yahoo.co.uk> wrote:
> Path '/cygdrive/c/work/perforce/config_test\...' is not under client's root 'c:\work\perforce\config_test'.
Ah, sorry, I did not see this part of the error message when I first
replied. This does seem like a cygwin related problem. Not sure how
easy it is to solve. But as mentioned, msysgit works fine with git-p4.
- Thomas
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git-p4 under cygwin
@ 2012-01-04 8:54 Paul Chown
0 siblings, 0 replies; 4+ messages in thread
From: Paul Chown @ 2012-01-04 8:54 UTC (permalink / raw)
To: Thomas Berg; +Cc: git
On 1/3/12, Thomas Berg <merlin66b@gmail.com> wrote:
> On Tue, Jan 3, 2012 at 4:32 PM, Paul Chown <pmchown@yahoo.co.uk> wrote:
>> Path '/cygdrive/c/work/perforce/config_test\...' is not under client's
>> root 'c:\work\perforce\config_test'.
>
> Ah, sorry, I did not see this part of the error message when I first
> replied. This does seem like a cygwin related problem. Not sure how
> easy it is to solve. But as mentioned, msysgit works fine with git-p4.
>
> - Thomas
>
Thanks! with msysgit it works a lot better. The 'vi' invocation failed during the submit, and I tried just about every EDITOR variation that I could think of without success, but I could workround that by setting EDITOR to use the Windows notepad.exe instead.
Paul
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-01-04 9:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-03 15:32 git-p4 under cygwin Paul Chown
2012-01-03 15:54 ` Thomas Berg
2012-01-03 16:07 ` Thomas Berg
-- strict thread matches above, loose matches on Subject: below --
2012-01-04 8:54 Paul Chown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).