summaryrefslogtreecommitdiff
path: root/lib/gitlab_access_status.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add support for using gl_project_pathsh-use-gl-project-pathStan Hu2019-02-161-2/+5
| | | | | | This will enable us to track the human-readable project path with SSH access in gitlab-shell. Currently the Gitaly logs will only show the hashed storage and gl_repository path (e.g. project-1234).
* Display helpful feedback when proxying an SSH git push to secondary request ↵Ash McKenzie2018-09-251-2/+1
| | | | (v2)
* Custom Action supportash.mckenzie/custom-action-supportAsh McKenzie2018-09-081-3/+14
|
* GitlabAccessStatus needs HTTP response status codeAsh McKenzie2018-09-071-2/+4
|
* GitAccessStatus initializer sensible defaultsAsh McKenzie2018-09-071-1/+1
|
* Fix handling non 200 response codeszj-fix-non-200-resp-codeZeger-Jan van de Weg2018-09-051-1/+1
| | | | | | | | | After the cleanup in https://gitlab.com/gitlab-org/gitlab-shell/merge_requests/231 gitlab-shell mishandled the non 200 response codes. This commit removes another few lines of codes, which fixes this. Also now we test against this case through mocking. Fixes https://gitlab.com/gitlab-org/gitlab-shell/issues/152
* Remove repo_path from GitlabShellzj-remove-repo-pathZeger-Jan van de Weg2018-08-161-3/+1
| | | | | | | | | | | | | | | The internal api returns '/' from gitlab, since `8fad07383ada021fc995294fd0fe0f77fe37da35` from GitLab CE. To clean up later, https://gitlab.com/gitlab-org/gitlab-shell/issues/135 was created. This change closes that issue, making it possible to remove the field from the response on GitLab-CE too. Given the Rails app always returns `/` as the repository_path, the associated checks are basically a noop too. The tests are updated and at times look a little fishy, but those are testing code that is to be removed in another MR. Closes https://gitlab.com/gitlab-org/gitlab-shell/issues/135
* Restore "Pass custom git_config_options to Gitalyo"Nick Thomas2018-08-141-2/+4
| | | | This reverts commit 764f6f47fa6a8698ae033532ae49875a87030518.
* Revert "Merge branch 'ash.mckenzie/srp-refactor' into 'master'"Nick Thomas2018-08-141-0/+32
| | | | | This reverts commit 3aaf4751e09262c53544a1987f59b1308af9b6c1, reversing changes made to c6577e0d75f51b017f2f332838b97c3ca5b497c0.
* Remove GitAccessStatus as not requiredAsh McKenzie2018-08-011-28/+0
|
* Update files to pass modern rubocop checks. Disable some of themdz-update-depsDmitriy Zaporozhets2018-02-221-6/+6
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Remove special case treatment of Geo nodes for SSHStan Hu2018-01-121-5/+3
| | | | | | | We removed SSH support in https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3553, so we no longer need the ability to show all refs for Geo nodes. Closes #115
* pass gl_username through to hooksDavid Turner2017-09-281-6/+8
|
* Make geo_node a default parametersh-show-all-refsStan Hu2017-07-241-1/+1
|
* Support unhiding of all refs for Geo NodesStan Hu2017-07-211-3/+9
| | | | | | By default, we hide certain refs (e.g. keep-around/XXX) to save user download time. We need to preserve these references on secondary Geo nodes to have a true copy.
* - Update gitaly vendoringKim "BKC" Carlbäcker2017-07-031-3/+4
| | | | | - Wire up gitaly-*-pack to Gitaly. Don't pass git-*-pack to go - Disable tests for go1.5 & 1.6
* Handle GL_REPOSITORY env variable and use it in api callsAlejandro Rodríguez2017-05-111-3/+4
|
* Refactor repository paths handling to allow multiple git mount pointsshardsAlejandro Rodríguez2016-06-291-3/+4
|
* Simplify the GitAccessStatus classsimplify-access-statusJacob Vosmaer2016-06-231-5/+4
| | | | | Make the optional 'message' argument required. Remove unused 'to_json' method.
* Make fixes to pass rubocopDmitriy Zaporozhets2015-02-161-2/+2
|
* Revert "Revert "Merge branch 'git_hook_messages'""Valery Sizov2014-11-241-0/+20
| | | | This reverts commit f8453da5868dd7a23d0f2f3da7a45e33c441d1db.
* Revert "Merge branch 'git_hook_messages'"Jacob Vosmaer2014-11-201-20/+0
| | | | | | | | | | At least the following things were broken: - missing require for 'gitlab_access_status' in lib/gitlab_net.rb - gitlabhq master internal API returns 'true' or 'false', gitlab-shell expects JSON This reverts commit 11311a95545f967a5736cd16ab5fc37f7e658519, reversing changes made to 45444597aef3e434571de2491934ae92357ad231.
* Show error message when git access is rejectedValery Sizov2014-11-141-0/+20