From 87bc092d7cac1c1a1fd686d96fa540ddab97622c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 21 Feb 2010 14:37:09 +0000 Subject: [PATCH] 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 --- lib/redmine/scm/adapters/git_adapter.rb | 2 +- test/unit/repository_git_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/redmine/scm/adapters/git_adapter.rb b/lib/redmine/scm/adapters/git_adapter.rb index d4678b12d..75a33a054 100644 --- a/lib/redmine/scm/adapters/git_adapter.rb +++ b/lib/redmine/scm/adapters/git_adapter.rb @@ -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] diff --git a/test/unit/repository_git_test.rb b/test/unit/repository_git_test.rb index 5ebbb00c1..71b3e4da5 100644 --- a/test/unit/repository_git_test.rb +++ b/test/unit/repository_git_test.rb @@ -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