Move relative path to HookEnv
Gitaly sends Rails the repository's relative path through hooks. This relative path needs to be passed in quarantined requests to Gitaly. Currently the relative path is piped through a separate construct from the HookEnv even though they both need to be piped to the same locations. Manage the relative path with the HookEnv class so it is easily settable and accessible where needed. We'll need to set it in tests that are not currently correctly setting it.
显示
- ee/lib/ee/gitlab/checks/push_rule_check.rb 3 个添加, 1 个删除ee/lib/ee/gitlab/checks/push_rule_check.rb
- ee/spec/lib/ee/gitlab/checks/push_rule_check_spec.rb 1 个添加, 0 个删除ee/spec/lib/ee/gitlab/checks/push_rule_check_spec.rb
- ee/spec/lib/ee/gitlab/git_access_project_spec.rb 4 个添加, 5 个删除ee/spec/lib/ee/gitlab/git_access_project_spec.rb
- ee/spec/lib/gitlab/git_access_spec.rb 4 个添加, 5 个删除ee/spec/lib/gitlab/git_access_spec.rb
- lib/api/internal/base.rb 2 个添加, 10 个删除lib/api/internal/base.rb
- lib/gitlab/git/hook_env.rb 16 个添加, 1 个删除lib/gitlab/git/hook_env.rb
- spec/lib/gitlab/checks/changed_blobs_spec.rb 7 个添加, 11 个删除spec/lib/gitlab/checks/changed_blobs_spec.rb
- spec/lib/gitlab/checks/file_size_check/hook_environment_aware_any_oversized_blobs_spec.rb 5 个添加, 9 个删除..._check/hook_environment_aware_any_oversized_blobs_spec.rb
- spec/lib/gitlab/git/hook_env_spec.rb 34 个添加, 14 个删除spec/lib/gitlab/git/hook_env_spec.rb
- spec/lib/gitlab/git_access_snippet_spec.rb 4 个添加, 5 个删除spec/lib/gitlab/git_access_snippet_spec.rb
- spec/requests/api/internal/base_spec.rb 11 个添加, 18 个删除spec/requests/api/internal/base_spec.rb
- spec/support/helpers/api_internal_base_helpers.rb 2 个添加, 2 个删除spec/support/helpers/api_internal_base_helpers.rb
加载中
想要评论请 注册 或 登录