Removes --find-copies-harder git option to retrieve commits which was way to slow (#4547).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3468 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2010-02-21 14:37:09 +00:00
parent 4878d749f4
commit 87bc092d7c
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ module Redmine
def revisions(path, identifier_from, identifier_to, options={})
revisions = Revisions.new
cmd = "#{GIT_BIN} --git-dir #{target('')} log --find-copies-harder --raw --date=iso --pretty=fuller"
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]

View File

@ -35,7 +35,7 @@ class RepositoryGitTest < ActiveSupport::TestCase
@repository.reload
assert_equal 12, @repository.changesets.count
assert_equal 20, @repository.changes.count
assert_equal 21, @repository.changes.count
commit = @repository.changesets.find(:first, :order => 'committed_on ASC')
assert_equal "Initial import.\nThe repository contains 3 files.", commit.comments