Skip to content

Include Gitlab::Shell in Snippets

What does this MR do?

In https://gitlab.com/gitlab-org/gitlab/blob/fj-include-gitlab-shell-in-has-repository/app/models/storage/hashed.rb#L6 we delegate the method gitlab_shell to the container. It seems, during the refactor, we didn't include the module inside the HasRepository concern. Therefore, only Project can return a successful response (because they directly include this module).

In this MR, we include the Gitlab::ShellAdapter inside the HasRepository concern, in order to let every container (aka something that can have a repository), return successfully to gitlab_shell method.

Does this MR meet the acceptance criteria?

Conformity

Merge request reports