gitlab-org--gitlab-foss/lib
Sean McGivern 528b5eeb76 Fix error when viewing diffs without blobs
Old merge requests can have diffs without corresponding blobs. (This also may be
possible for commit diffs in corrupt repositories.)

We can't use the `&.` operator on the blobs, because the blob objects are never
nil, but `BatchLoader` instances that delegate to `Blob`. We can't use
`Object#try`, because `Blob` doesn't inherit from `Object`.

`BatchLoader` provides a `__sync` method that returns the delegated object, but
using `itself` also works because it's forwarded, and will work for
non-`BatchLoader` instances too. So the simplest solution is to just use that
with the `&.` operator.
2018-01-04 14:33:12 +00:00
..
api Merge branch 'ce-4135-remove-ee-specific-code-from-post-api-v4-projects-id-members' into 'master' 2018-01-02 16:32:28 +00:00
assets
backup Ignore "lost+found" folder during backup on a volume 2017-12-20 08:11:13 +00:00
banzai Gracefully handle garbled URIs in Markdown 2017-12-22 23:21:12 -08:00
bitbucket
constraints
container_registry
declarative_policy
generators/rails/post_deployment_migration
gitlab Fix error when viewing diffs without blobs 2018-01-04 14:33:12 +00:00
google_api Refactor GCP Client#user_agent_header to use #tap 2017-12-04 13:43:45 +01:00
haml_lint
json_web_token
mattermost
microsoft_teams
omni_auth/strategies
peek
rouge/formatters Add support of Mermaid 2017-11-22 14:12:04 +11:00
rspec_flaky
support
system_check
tasks Add index on namespaces lower(name) for UsersController#exists 2017-12-21 23:07:25 +00:00
additional_email_headers_interceptor.rb
after_commit_queue.rb Execute project hooks and services after commit when moving an issue 2017-12-22 17:19:50 +01:00
banzai.rb
declarative_policy.rb
disable_email_interceptor.rb
email_template_interceptor.rb
event_filter.rb
expand_variables.rb
extracts_path.rb Backport changes from EE 2017-12-15 19:37:57 +08:00
feature.rb Update flipper to 0.11.0 and take advantage of the new features 2017-12-14 02:11:11 +01:00
file_size_validator.rb
gitlab.rb
gt_one_coercion.rb
milestone_array.rb
repository_cache.rb
static_model.rb
system_check.rb
unfold_form.rb
uploaded_file.rb
version_check.rb