gitlab-org--gitlab-foss/lib
Stan Hu 31f2608161 Fix handling of annotated tags when Gitaly is not in use
Attempting to view an annotated tag in the TreeController would result
in `NoMethodError: undefined method 'tree'` when Rugged was in use.
`Blob#find_by_rugged` assumes that the ref is a true. Using
the commit ID ensures that the right ref is being used.

Note that in 11.1, `Blob#find` no longer uses Rugged, so this is only
a bug in 11.0.

Closes gitlab-org/gitlab-ce#47797
2018-07-09 06:30:19 -07:00
..
api
assets
backup
banzai
bitbucket
constraints
container_registry
declarative_policy
generators/rails/post_deployment_migration
gitaly
gitlab
google_api
haml_lint
json_web_token
mattermost
microsoft_teams
object_storage
omni_auth/strategies
peek
rouge
rspec_flaky
support
system_check
tasks
additional_email_headers_interceptor.rb
after_commit_queue.rb
backup.rb
banzai.rb
carrier_wave_string_file.rb
declarative_policy.rb
disable_email_interceptor.rb
email_template_interceptor.rb
event_filter.rb
expand_variables.rb
extracts_path.rb
feature.rb
file_size_validator.rb
forever.rb
gitlab.rb
gt_one_coercion.rb
milestone_array.rb
mysql_zero_date.rb
static_model.rb
system_check.rb
unfold_form.rb
uploaded_file.rb
version_check.rb