mirror of
https://github.com/redmine/redmine.git
synced 2025-11-05 04:45:57 +01:00
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:
@@ -114,7 +114,7 @@ module Redmine
|
|||||||
def revisions(path, identifier_from, identifier_to, options={})
|
def revisions(path, identifier_from, identifier_to, options={})
|
||||||
revisions = Revisions.new
|
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 << " --reverse" if options[:reverse]
|
||||||
cmd << " --all" if options[:all]
|
cmd << " --all" if options[:all]
|
||||||
cmd << " -n #{options[:limit]} " if options[:limit]
|
cmd << " -n #{options[:limit]} " if options[:limit]
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class RepositoryGitTest < ActiveSupport::TestCase
|
|||||||
@repository.reload
|
@repository.reload
|
||||||
|
|
||||||
assert_equal 12, @repository.changesets.count
|
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')
|
commit = @repository.changesets.find(:first, :order => 'committed_on ASC')
|
||||||
assert_equal "Initial import.\nThe repository contains 3 files.", commit.comments
|
assert_equal "Initial import.\nThe repository contains 3 files.", commit.comments
|
||||||
|
|||||||
Reference in New Issue
Block a user