From 9748567452ccaf89e566622e2cf851da5dafc78d Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 1 Jan 2011 11:13:33 +0000 Subject: [PATCH] ruby1.9 compatibility git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4601 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/scm/adapters/cvs_adapter.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/redmine/scm/adapters/cvs_adapter.rb b/lib/redmine/scm/adapters/cvs_adapter.rb index 47fac7a3..5ca9e741 100644 --- a/lib/redmine/scm/adapters/cvs_adapter.rb +++ b/lib/redmine/scm/adapters/cvs_adapter.rb @@ -283,6 +283,8 @@ module Redmine # convert a date/time into the CVS-format def time_to_cvstime(time) return nil if time.nil? + return Time.now if time == 'HEAD' + unless time.kind_of? Time time = Time.parse(time) end