Commit Graph

20 Commits

Author SHA1 Message Date
GitLab Bot 0ff373dc41 Add latest changes from gitlab-org/gitlab@master 2020-12-15 15:09:59 +00:00
GitLab Bot 61265b9f01 Add latest changes from gitlab-org/gitlab@master 2020-10-05 15:08:56 +00:00
GitLab Bot f0809fbc2c Add latest changes from gitlab-org/gitlab@master 2020-09-09 00:08:42 +00:00
GitLab Bot 1ea7dedfce Add latest changes from gitlab-org/gitlab@master 2020-06-24 21:08:46 +00:00
GitLab Bot 6478698293 Add latest changes from gitlab-org/gitlab@master 2020-06-09 21:08:21 +00:00
GitLab Bot 4c788f43cb Add latest changes from gitlab-org/gitlab@master 2020-05-28 09:08:05 +00:00
GitLab Bot 6985123d92 Add latest changes from gitlab-org/gitlab@master 2020-05-28 00:08:37 +00:00
GitLab Bot 47579e24f3 Add latest changes from gitlab-org/gitlab@master 2020-05-27 21:08:05 +00:00
GitLab Bot 2fa68d3a97 Add latest changes from gitlab-org/gitlab@master 2020-05-04 06:10:10 +00:00
GitLab Bot 77237c5a6b Add latest changes from gitlab-org/gitlab@master 2020-03-05 00:07:49 +00:00
GitLab Bot 0ab47b994c Add latest changes from gitlab-org/gitlab@master 2020-02-13 15:08:52 +00:00
GitLab Bot 1ea1db491c Add latest changes from gitlab-org/gitlab@master 2020-01-27 15:08:51 +00:00
GitLab Bot b7dfe2ae40 Add latest changes from gitlab-org/gitlab@master 2019-09-13 13:26:31 +00:00
Bob Van Landuyt 55457b2c16 Make Gitlab::GlRepository#types an instance method
Having this as an instance method makes it easier to override in the
prepended `EE` module.

If we try to override this method on the module itself, it would not
be overridden correctly, depending on the load order.
2019-04-30 17:17:08 +02:00
Bob Van Landuyt 2fdda74458 Fall back to project repository type by default
This makes sure that we always have a repository type when trying to
parse a repository from a path.

This is needed because sometimes we want to perform access checks as
if the project already existed, for example when creating a project on
push.

Before this we were only doing that when accessing git over http, this
makes sure it also works correctly when accessing git over SSH
2019-04-05 10:51:42 +00:00
Bob Van Landuyt d36415b754 Allow multiple repositories per project
This changes the repository type from a binary `wiki?` to a type. So
we can have more than 2 repository types.

Now everywhere we called `.wiki?` and expected a boolean, we check
that type.
2019-03-26 13:21:03 +01:00
gfyoung c858f70d07 Enable frozen string for lib/gitlab/*.rb 2018-10-22 07:00:50 +00:00
Yorick Peterse 2039c8280d
Disable existing offenses for the CodeReuse cops
This whitelists all existing offenses for the various CodeReuse cops, of
which most are triggered by the CodeReuse/ActiveRecord cop.
2018-09-11 17:32:00 +02:00
Alejandro Rodríguez 8bc381db90 Pass GL_REPOSITORY in Workhorse responses 2017-05-05 10:52:06 -03:00
Alejandro Rodríguez c45341c816 Generate and handle a gl_repository param to pass around components
This new param allows us to share project information between components
that don't share or don't have access to the same filesystem
mountpoints, for example between Gitaly and Rails or between Rails and
Gitlab-Shell hooks. The previous parameters are still supported, but if
found, gl_repository is prefered. The old parameters should be deprecated
once all components support the new format.
2017-05-03 17:37:30 -03:00