summaryrefslogtreecommitdiffstats
path: root/tool/file2lastrev.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-31 21:56:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-31 21:56:38 +0000
commit78b1d1f176ec1fe8b96308cdd3be0a020d488e08 (patch)
tree3557689a2fa1049c67c60d3025fc88d5b8d44b59 /tool/file2lastrev.rb
parent9f81e1d0dd89b01910e506f2c5d3510957031cf3 (diff)
downloadruby-78b1d1f176ec1fe8b96308cdd3be0a020d488e08.tar.gz
ruby-78b1d1f176ec1fe8b96308cdd3be0a020d488e08.tar.xz
ruby-78b1d1f176ec1fe8b96308cdd3be0a020d488e08.zip
* tool/file2lastrev.rb: unset PWD.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/file2lastrev.rb')
-rw-r--r--tool/file2lastrev.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/tool/file2lastrev.rb b/tool/file2lastrev.rb
index 01ac1bbce..37b27b2b8 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