This method is only available on newer versions.
The first available version (v2_6_3) is shown here.
git_null(command)
private
TODO: Do not rely on /dev/null. Given that open3 is not cross platform
until Ruby 1.9.3, the best solution is
to pipe to /dev/null if it exists. If it doesn’t, everything will work
fine, but the user will get the $stderr messages as well.
# File lib/bundler/source/git/git_proxy.rb, line 156
def git_null(command)
git("#{command} 2>#{Bundler::NULL}", false)
end