Project

General

Profile

Defect #15756 ยป abstract_adapter.diff

Ilya S, 2013-12-23 12:14

View differences:

lib/redmine/scm/adapters/abstract_adapter.rb
16 16
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17 17

  
18 18
require 'cgi'
19
require 'redmine/scm/adapters'
19 20

  
20 21
if RUBY_VERSION < '1.9'
21 22
  require 'iconv'
......
24 25
module Redmine
25 26
  module Scm
26 27
    module Adapters
27 28
      class AbstractAdapter #:nodoc:
28 29

  
29 30
        # raised if scm command exited with error, e.g. unknown revision.
30 31
        class ScmCommandAborted < CommandFailed; end
31 32

  
32 33
        class << self
33 34
          def client_command
......
184 183
        def without_trailling_slash(path)
185 184
          path ||= ''
186 185
          (path[-1,1] == "/") ? path[0..-2] : path
187
         end
186
        end
188 187

  
189 188
        def shell_quote(str)
190 189
          self.class.shell_quote(str)
    (1-1/1)