msysgit / git

msysGit-based Git for Windows 1.x is now superseded by Git for Windows 2.x
http://github.com/git-for-windows/git
Other
1.01k stars 317 forks source link

Git with Python support? #295

Closed TurkeyMan closed 9 years ago

TurkeyMan commented 9 years ago

Is it possible to build msysgit with python support, where support is optional, depending if the user has python installed or not?

'git p4' depends on python, and since windows is a very popular p4 platform, it would be super useful if we could attach git to our workflow.

dscho commented 9 years ago

See https://github.com/msysgit/msysgit/pull/244 and for more information, search the mailing list archives (sorry, I spent way too much time to help Git for Windows users recently, I am sorry that you are on the receiving end of my Git for Windows time budget being seriously overdrawn).

terrehbyte commented 9 years ago

My teammates and I got 'git p4' working flawlessly on Windows after taking a look at an issue on msysgit that also asked for support for it on Windows.

We did the following:

  1. Install Git for Windows.
  2. Installed the latest version of Python 2 (2.7.9 at the time). Make sure you add python to your PATH environment variable.
  3. Replaced the placeholder git-p4 script with the actual one. For me, this was at C:\Program Files (x86)\Git\libexec\git-core\git-p4.

It should be ready to use after following the above steps.

dscho commented 9 years ago

@terrehbyte unfortunately, that does not fit in the maintenance scheme chosen for Git for Windows (neither msysGit-based 1.x nor MSys2-based 2.x). If you are interested enough to resolve this issue, please work with me by opening a Pull Request with Git for Windows 2.x.