The patch breaks some tests. Reverted the change.
# Running:
..........................................................................................................................................................................F
Failure:
RepositoriesGitTest#test_diff_two_revs [/var/lib/jenkins/workspace/trunk/DATABASE_ADAPTER/sqlite3/RUBY_VER/ruby-2.5/test/integration/repositories_git_test.rb:47]:
Expected response to be a <2XX: success>, but was a <500: Internal Server Error>
bin/rails test test/integration/repositories_git_test.rb:45
...............................................................................................................................................................................................................................................................................................................................................................................................................SS...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E
Error:
RepositoriesGitControllerTest#test_save_diff_type:
ActionView::Template::Error: undefined method `previous' for nil:NilClass
app/views/repositories/diff.html.erb:3:in `_app_views_repositories_diff_html_erb__749227865__1013454858'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
test/functional/repositories_git_controller_test.rb:472:in `test_save_diff_type'
bin/rails test test/functional/repositories_git_controller_test.rb:464
...........E
Error:
RepositoriesGitControllerTest#test_diff_path_in_subrepo:
ActionView::Template::Error: undefined method `previous' for nil:NilClass
app/views/repositories/diff.html.erb:3:in `_app_views_repositories_diff_html_erb__749227865__1013454858'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
test/functional/repositories_git_controller_test.rb:414:in `test_diff_path_in_subrepo'
bin/rails test test/functional/repositories_git_controller_test.rb:404
...E
Error:
RepositoriesGitControllerTest#test_diff_should_show_filenames:
ActionView::Template::Error: undefined method `previous' for nil:NilClass
app/views/repositories/diff.html.erb:3:in `_app_views_repositories_diff_html_erb__749227865__1013454858'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
test/functional/repositories_git_controller_test.rb:451:in `test_diff_should_show_filenames'
bin/rails test test/functional/repositories_git_controller_test.rb:450
......E
Error:
RepositoriesGitControllerTest#test_diff_latin_1:
ActionView::Template::Error: undefined method `previous' for nil:NilClass
app/views/repositories/diff.html.erb:3:in `_app_views_repositories_diff_html_erb__749227865__1013454858'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
test/functional/repositories_git_controller_test.rb:433:in `block (3 levels) in test_diff_latin_1'
test/functional/repositories_git_controller_test.rb:432:in `each'
test/functional/repositories_git_controller_test.rb:432:in `block (2 levels) in test_diff_latin_1'
test/functional/repositories_git_controller_test.rb:431:in `each'
test/functional/repositories_git_controller_test.rb:431:in `block in test_diff_latin_1'
test/test_helper.rb:93:in `with_settings'
test/functional/repositories_git_controller_test.rb:430:in `test_diff_latin_1'
bin/rails test test/functional/repositories_git_controller_test.rb:426
..........................................................................................................................................................................................................................................................................................E
Error:
RepositoriesMercurialControllerTest#test_diff_should_show_deleted_filenames:
ActionView::Template::Error: undefined method `previous' for nil:NilClass
app/views/repositories/diff.html.erb:3:in `_app_views_repositories_diff_html_erb__749227865__1013454858'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
test/functional/repositories_mercurial_controller_test.rb:416:in `test_diff_should_show_deleted_filenames'
bin/rails test test/functional/repositories_mercurial_controller_test.rb:415
..E
Error:
RepositoriesMercurialControllerTest#test_diff_latin_1_path:
ActionView::Template::Error: undefined method `previous' for nil:NilClass
app/views/repositories/diff.html.erb:3:in `_app_views_repositories_diff_html_erb__749227865__1013454858'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
test/functional/repositories_mercurial_controller_test.rb:388:in `block (3 levels) in test_diff_latin_1_path'
test/functional/repositories_mercurial_controller_test.rb:387:in `each'
test/functional/repositories_mercurial_controller_test.rb:387:in `block (2 levels) in test_diff_latin_1_path'
test/functional/repositories_mercurial_controller_test.rb:386:in `each'
test/functional/repositories_mercurial_controller_test.rb:386:in `block in test_diff_latin_1_path'
test/test_helper.rb:93:in `with_settings'
test/functional/repositories_mercurial_controller_test.rb:385:in `test_diff_latin_1_path'
bin/rails test test/functional/repositories_mercurial_controller_test.rb:384
E
Error:
RepositoriesMercurialControllerTest#test_diff_should_show_modified_filenames:
ActionView::Template::Error: undefined method `previous' for nil:NilClass
app/views/repositories/diff.html.erb:3:in `_app_views_repositories_diff_html_erb__749227865__1013454858'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
test/functional/repositories_mercurial_controller_test.rb:405:in `test_diff_should_show_modified_filenames'
bin/rails test test/functional/repositories_mercurial_controller_test.rb:404
......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Deprecation warning: Net::LDAP::ConnectionRefused will be deprecated. Use Errno::ECONNREFUSED instead.
Deprecation warning: Net::LDAP::ConnectionRefused will be deprecated. Use Errno::ECONNREFUSED instead.
..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................S..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E
Error:
RepositoriesBazaarControllerTest#test_diff:
ActionView::Template::Error: undefined method `previous' for nil:NilClass
app/views/repositories/diff.html.erb:3:in `_app_views_repositories_diff_html_erb__749227865__1013454858'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
test/functional/repositories_bazaar_controller_test.rb:146:in `block in test_diff'
test/functional/repositories_bazaar_controller_test.rb:145:in `each'
test/functional/repositories_bazaar_controller_test.rb:145:in `test_diff'
bin/rails test test/functional/repositories_bazaar_controller_test.rb:143
.................
Finished in 428.714970s, 10.9140 runs/s, 49.5901 assertions/s.
4679 runs, 21260 assertions, 1 failures, 8 errors, 3 skips
You have skipped tests. Run with --verbose for details.