diff --git a/lib/redmine/scm/adapters/abstract_adapter.rb b/lib/redmine/scm/adapters/abstract_adapter.rb index 3e51f2d..b49d8ea 100644 --- a/lib/redmine/scm/adapters/abstract_adapter.rb +++ b/lib/redmine/scm/adapters/abstract_adapter.rb @@ -16,6 +16,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. require 'cgi' +require 'redmine/scm/adapters' if RUBY_VERSION < '1.9' require 'iconv' @@ -24,13 +25,11 @@ end module Redmine module Scm module Adapters class AbstractAdapter #:nodoc: # raised if scm command exited with error, e.g. unknown revision. class ScmCommandAborted < CommandFailed; end class << self def client_command @@ -184,7 +183,7 @@ module Redmine def without_trailling_slash(path) path ||= '' (path[-1,1] == "/") ? path[0..-2] : path - end + end def shell_quote(str) self.class.shell_quote(str)