diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-03-28 15:40:37 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-03-28 15:40:37 +0000 |
commit | 3e11f9abfe9d55963983305b8ca71ca0a428b1cc (patch) | |
tree | e3543e51ace2732883bebc78524b5ba74ec73ec8 /lib/redmine/scm/adapters/abstract_adapter.rb | |
parent | fbe959b2a8153df0da01b2320a78f6f0786e05a3 (diff) | |
download | redmine-3e11f9abfe9d55963983305b8ca71ca0a428b1cc.tar.gz redmine-3e11f9abfe9d55963983305b8ca71ca0a428b1cc.zip |
scm: git: use stdin instead of command line in "git log" (#10470)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9282 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/scm/adapters/abstract_adapter.rb')
-rw-r--r-- | lib/redmine/scm/adapters/abstract_adapter.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/redmine/scm/adapters/abstract_adapter.rb b/lib/redmine/scm/adapters/abstract_adapter.rb index 3797534c3..bf512d1f1 100644 --- a/lib/redmine/scm/adapters/abstract_adapter.rb +++ b/lib/redmine/scm/adapters/abstract_adapter.rb @@ -206,15 +206,15 @@ module Redmine self.class.logger end - def shellout(cmd, &block) - self.class.shellout(cmd, &block) + def shellout(cmd, options = {}, &block) + self.class.shellout(cmd, options, &block) end def self.logger Rails.logger end - def self.shellout(cmd, &block) + def self.shellout(cmd, options = {}, &block) if logger && logger.debug? logger.debug "Shelling out: #{strip_credential(cmd)}" end @@ -226,7 +226,7 @@ module Redmine mode = "r+" IO.popen(cmd, mode) do |io| io.set_encoding("ASCII-8BIT") if io.respond_to?(:set_encoding) - io.close_write + io.close_write unless options[:write_stdin] block.call(io) if block_given? end ## If scm command does not exist, |