##// END OF EJS Templates
Removes --find-copies-harder git option to retrieve commits which was way to slow (#4547)....
Jean-Philippe Lang -
r3354:87bc092d7cac
parent child
Show More
@@ -114,7 +114,7 module Redmine
114 def revisions(path, identifier_from, identifier_to, options={})
114 def revisions(path, identifier_from, identifier_to, options={})
115 revisions = Revisions.new
115 revisions = Revisions.new
116
116
117 cmd = "#{GIT_BIN} --git-dir #{target('')} log --find-copies-harder --raw --date=iso --pretty=fuller"
117 cmd = "#{GIT_BIN} --git-dir #{target('')} log --raw --date=iso --pretty=fuller"
118 cmd << " --reverse" if options[:reverse]
118 cmd << " --reverse" if options[:reverse]
119 cmd << " --all" if options[:all]
119 cmd << " --all" if options[:all]
120 cmd << " -n #{options[:limit]} " if options[:limit]
120 cmd << " -n #{options[:limit]} " if options[:limit]
@@ -35,7 +35,7 class RepositoryGitTest < ActiveSupport::TestCase
35 @repository.reload
35 @repository.reload
36
36
37 assert_equal 12, @repository.changesets.count
37 assert_equal 12, @repository.changesets.count
38 assert_equal 20, @repository.changes.count
38 assert_equal 21, @repository.changes.count
39
39
40 commit = @repository.changesets.find(:first, :order => 'committed_on ASC')
40 commit = @repository.changesets.find(:first, :order => 'committed_on ASC')
41 assert_equal "Initial import.\nThe repository contains 3 files.", commit.comments
41 assert_equal "Initial import.\nThe repository contains 3 files.", commit.comments
General Comments 0
You need to be logged in to leave comments. Login now