Project

General

Profile

Defect #40948 » 0001-Truncate-git-authors-to-255-characters.patch

Holger Just, 2024-07-08 19:33

View differences:

app/models/repository/git.rb
219 219
        :repository   => self,
220 220
        :revision     => rev.identifier,
221 221
        :scmid        => rev.scmid,
222
        :committer    => rev.author,
222
        :committer    => rev.author.truncate(255),
223 223
        :committed_on => rev.time,
224 224
        :comments     => rev.message,
225 225
        :parents      => parents
test/functional/repositories_git_controller_test.rb
28 28
  REPOSITORY_PATH = Rails.root.join('tmp/test/git_repository').to_s
29 29
  REPOSITORY_PATH.tr!('/', "\\") if Redmine::Platform.mswin?
30 30
  PRJ_ID     = 3
31
  NUM_REV = 28
31
  NUM_REV = 29
32 32

  
33 33
  def setup
34 34
    super
test/integration/repositories_git_test.rb
26 26
  REPOSITORY_PATH = Rails.root.join('tmp/test/git_repository').to_s
27 27
  REPOSITORY_PATH.tr!('/', "\\") if Redmine::Platform.mswin?
28 28
  PRJ_ID     = 3
29
  NUM_REV = 28
29
  NUM_REV = 29
30 30

  
31 31
  def setup
32 32
    User.current = nil
(1-1/5)