summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-01 06:43:08 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-01 06:43:08 +0000
commitdabea27279d19d13ab041ecab1d2532440703f58 (patch)
tree8f10ed69a8ee64cb74a769520bd2a76a1fb520ab /tool
parenta1428471182d77d4f40c30d467bf701b67c86aae (diff)
merges r21219 from trunk into ruby_1_9_1.
* tool/file2lastrev.rb: unset PWD. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@21233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rw-r--r--tool/file2lastrev.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/tool/file2lastrev.rb b/tool/file2lastrev.rb
index 01ac1bbced..37b27b2b88 100644
--- a/tool/file2lastrev.rb
+++ b/tool/file2lastrev.rb
@@ -1,5 +1,8 @@
#!/usr/bin/env ruby
+ENV['LANG'] = ENV['LC_ALL'] = ENV['LC_MESSAGES'] = 'C'
+ENV.delete('PWD')
+
require 'optparse'
require 'pathname'
@@ -14,7 +17,6 @@ def detect_vcs(path)
end
def get_revisions(path)
- ENV['LANG'] = ENV['LC_ALL'] = ENV['LC_MESSAGES'] = 'C'
vcs, path = detect_vcs(path)
info = case vcs