]> source.dussan.org Git - redmine.git/commit
Truncate git authors to 255 characters (#40948).
authorMarius Balteanu <marius.balteanu@zitec.com>
Mon, 8 Jul 2024 20:35:16 +0000 (20:35 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Mon, 8 Jul 2024 20:35:16 +0000 (20:35 +0000)
commitc1eff66f683174b6ee7ad128bef530f1927f8ea1
tree5e96a2dca6cab171555e9c86719e8a98915b4db9
parentb2b2c52b78eebd31328d790a08088f4ded033337
Truncate git authors to 255 characters (#40948).

The committer column in the database allows max 255 characters. With longer authors, this would result in a schema violation. By manually truncating the author field, we can avoid this.

Patch by Holger Just (@hjust).

git-svn-id: https://svn.redmine.org/redmine/trunk@22910 e93f8b46-1217-0410-a6f0-8f06a7374b81
app/models/repository/git.rb
test/fixtures/repositories/git_repository.tar.gz
test/functional/repositories_git_controller_test.rb
test/integration/repositories_git_test.rb