summaryrefslogtreecommitdiffstats
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
commit5b7864cddc9880a42aecb8d7b1023057d8e3b790 (patch)
tree8f10ed69a8ee64cb74a769520bd2a76a1fb520ab
parentd953cabe08a7255c1d7d788c64bbce51f3fe4f75 (diff)
merges r21219 from trunk into ruby_1_9_1.
* tool/file2lastrev.rb: unset PWD. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--tool/file2lastrev.rb4
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 80a4c1aae..5c6eeb975 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu Jan 1 06:56:28 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/file2lastrev.rb: unset PWD.
+
Wed Dec 31 14:12:35 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* object.c (rb_to_float): replaced by to_flo definition from
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