Merge pull request #139 from esmarkowski/patch-1

[#761] Fix quotation of since date in git adapter
This commit is contained in:
Felix Schäfer 2011-12-10 02:31:05 -08:00
commit 05092b2737
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ module Redmine
from_to << "#{identifier_from}.." if identifier_from from_to << "#{identifier_from}.." if identifier_from
from_to << "#{identifier_to}" if identifier_to from_to << "#{identifier_to}" if identifier_to
cmd_args << from_to if !from_to.empty? cmd_args << from_to if !from_to.empty?
cmd_args << "--since=#{options[:since].strftime("%Y-%m-%d %H:%M:%S")}" if options[:since] cmd_args << "--since='#{options[:since].strftime("%Y-%m-%d %H:%M:%S")}'" if options[:since]
cmd_args << "--" << scm_iconv(@path_encoding, 'UTF-8', path) if path && !path.empty? cmd_args << "--" << scm_iconv(@path_encoding, 'UTF-8', path) if path && !path.empty?
scm_cmd *cmd_args do |io| scm_cmd *cmd_args do |io|