Project

General

Profile

Defect #5628 » 0001-git_adapter.rb-Fix-whitespace-in-git-command.patch

S. Christoffer Eliesen, 2010-06-24 22:41

View differences:

lib/redmine/scm/adapters/git_adapter.rb
cmd = "#{GIT_BIN} --git-dir #{target('')} log --raw --date=iso --pretty=fuller"
cmd << " --reverse" if options[:reverse]
cmd << " --all" if options[:all]
cmd << " -n #{options[:limit]} " if options[:limit]
cmd << " #{shell_quote(identifier_from + '..')} " if identifier_from
cmd << " #{shell_quote identifier_to} " if identifier_to
cmd << " -n #{options[:limit]}" if options[:limit]
cmd << " #{shell_quote(identifier_from + '..') if identifier_from}" \
"#{shell_quote(identifier_to) if identifier_to}" if identifier_from or identifier_to
cmd << " --since=#{shell_quote(options[:since].strftime("%Y-%m-%d %H:%M:%S"))}" if options[:since]
cmd << " -- #{path}" if path && !path.empty?
(1-1/2)