Does Grit works with Windows 7 well?

702 Views Asked by At

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).
2

There are 2 best solutions below

0
Brent Matzelle On BEST ANSWER

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".

0
Munish Malhotra On

I see a link on github related to this post - https://github.com/mojombo/grit/issues/4

Not sure how to use it though as I don't see open3_detach.rb file in Grit code.