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