marcandre/backports — pull request #60 by eregon (2012-07-19 14:55:11+00:00)
Title: Fix File::NULL for ruby built with MinGW

Otherwise it produces a "File not found error" dumped to stderr when doing, for example:

`git rev-parse --git-dir 2>#{File::NULL}`

This patch, however, will not work on JRuby, because `RUBY_PLATFORM` is always "java".
I don't know why they chose that, but I guess the only right way is then `RbConfig::CONFIG['host_os']` (excluding parsing RUBY_DESCRIPTION). What do you think?