Defect #15756 ยป abstract_adapter.diff
| lib/redmine/scm/adapters/abstract_adapter.rb | ||
|---|---|---|
|
# 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'
|
||
| ... | ... | |
|
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
|
||
| ... | ... | |
|
def without_trailling_slash(path)
|
||
|
path ||= ''
|
||
|
(path[-1,1] == "/") ? path[0..-2] : path
|
||
|
end
|
||
|
end
|
||
|
def shell_quote(str)
|
||
|
self.class.shell_quote(str)
|
||