summaryrefslogtreecommitdiff
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
commit79ccc677e779b360e21ba683a1c4f93939aa7c7d (patch)
tree3557689a2fa1049c67c60d3025fc88d5b8d44b59 /tool/file2lastrev.rb
parentaa3665e7826b6e27c43e067f0f8fb6794392319c (diff)
* tool/file2lastrev.rb: unset PWD.
git-svn-id: svn+ssh://ci.ruby-lang.org/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 01ac1bb..37b27b2 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