diff options
Diffstat (limited to 'tool/file2lastrev.rb')
-rwxr-xr-x | tool/file2lastrev.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/file2lastrev.rb b/tool/file2lastrev.rb index 1ce80c9032..7f668a2dda 100755 --- a/tool/file2lastrev.rb +++ b/tool/file2lastrev.rb @@ -61,8 +61,8 @@ class VCS def self.get_revisions(path) begin - nulldevice = '/dev/null' - if File.exist? nulldevice + nulldevice = %w[/dev/null NUL NIL: NL:].find {|dev| File.exist?(dev)} + if nulldevice save_stderr = STDERR.dup STDERR.reopen nulldevice, 'w' end |