Search code examples
rubygitwindows-7grit

Does Grit works with Windows 7 well?


I have tried the last day to work with the Ruby gem git (version 1.2.5), but I am not sure that it works well enough. I stumbled over grit, which is more active, but was not able to get it working under Windows 7. Do you have used grit under Windows 7, especially to use the methods status, add and others?

My working environment:

  • Windows 7 64 bit
  • ruby 1.9.2p180 (2011-02-18) [i386-mingw32]
    • git 1.2.5
    • grit 2.4.1
  • I used the two only in a shell / IRB environment, to get a feeling if one or the other would be a good fit. I want it then to integrate it in my Rails application (as part of a Rake task).

Solution

  • Unfortunately at this point and time the answer to your question apparently is "no". The grit gem requires the posix-spawn gem which, according to the project page, currently does not support Windows:

    Potentially portable - abstracts lower-level process and stream management APIs so the class can be made to work on platforms like Java and Windows where UNIX process spawning and stream APIs are not supported.

    The key above is "can be made to work on platforms like... Windows".