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

Re: git-p4 under cygwin

From
TBThomas Berg <merlin66b@gmail.com>
Date
Jan 3, 2012, 15:54 UTC
Message-ID
<CABYiQpmqfRTQ+=o38x0AVDaqg6wjdgqeJF6+sGSr215833QWtA@mail.gmail.com>
In-Reply-To
<1325604726.49597.YahooMailClassic@web132101.mail.ird.yahoo.com>
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
Previous: Paul ChownNext: Thomas Berg
Message 2 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.