git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git-p4 under cygwin

From
PCPaul Chown <pmchown@yahoo.co.uk>
Date
Jan 3, 2012, 15:32 UTC
Message-ID
<1325604726.49597.YahooMailClassic@web132101.mail.ird.yahoo.com>
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
Next: Thomas Berg
Message 1 of 3 in “git-p4 under cygwin”
  1. Paul ChownJan 3, 2012
  2. Thomas BergJan 3, 2012
  3. Thomas BergJan 3, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.