summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Manage authorized_keys permissions continuouslykeys-chmodJacob Vosmaer2016-08-011-4/+11
| | | | | | We can lazily create authorized_keys and set its permissions. This adds negligible overhead and it allows us to remove a setup step from GitLab both on source and in omnibus-gitlab.
* Track ongoing pushes and reject mv-storage commands if there are push ↵mv-storageAlejandro Rodríguez2016-07-273-3/+76
| | | | running (after waiting some time)
* Add command to move repositories between repository storagesAlejandro Rodríguez2016-07-271-0/+32
|
* Allow gitlab-project's fork-project command to fork projects between ↵Alejandro Rodríguez2016-07-261-1/+8
| | | | different repository storages
* Add an error message when using shell commands with incompatible GitLab versionsAlejandro Rodríguez2016-07-061-0/+1
|
* Make use of a constant for the used SSH protocolPatricio Cano2016-07-051-2/+3
|
* Rename ENV['PROTOCOL'] to ENV['GL_PROTOCOL'] and make it mandatory with no ↵Patricio Cano2016-07-053-3/+3
| | | | fallback value
* Simplify protocol assign, and populate ENV['PROTOCOL'] variable when calling ↵Patricio Cano2016-07-051-1/+2
| | | | hooks via SSH
* Allow GitLab Shell to check for allowed access based on the used Git protocol.Patricio Cano2016-07-053-5/+7
|
* use STDERR to output error messagesValery Sizov2016-07-051-3/+3
|
* Refactor repository paths handling to allow multiple git mount pointsshardsAlejandro Rodríguez2016-06-297-42/+34
|
* Simplify custom hook output handlingcustom-hook-outputJacob Vosmaer2016-06-241-29/+16
|
* Merge branch 'gitlab-redis' into 'master' Stan Hu2016-06-233-2/+3
|\ | | | | | | | | | | | | Put Redis loading code in one place Before this change you could not run the gitlab_net specs in isolation. See merge request !64
| * Put Redis loading code in one placegitlab-redisJacob Vosmaer2016-06-233-2/+3
| |
* | Merge branch 'simplify-access-status' into 'master' Valery Sizov2016-06-231-5/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | Simplify the GitAccessStatus class Make the optional 'message' argument required. Remove unused 'to_json' method. See merge request !65
| * | Simplify the GitAccessStatus classsimplify-access-statusJacob Vosmaer2016-06-231-5/+4
| |/ | | | | | | | | Make the optional 'message' argument required. Remove unused 'to_json' method.
* | Update PostReceive worker to provide enqueued_at timeenqueued_at_for_jobsPaco Guzman2016-06-231-1/+6
|/
* Put redis library in lib/vendor/ and adjust LOAD_PATHuse-redis-rb-clientStan Hu2016-05-1216-20/+21
|
* Add redis-rb as a vendored libraryStan Hu2016-05-1216-2/+5284
| | | | `make update-redis` will clone the library and adjust the paths properly
* Use Redis Ruby client instead of shelling out to redis-cliStan Hu2016-05-123-26/+25
| | | | Closes gitlab-org/gitlab-ce#17329
* Remove the update-head command since GitLab doesn't use it anymoreRémy Coutable2016-04-281-17/+0
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Revert "Remove unused #list_remote_tags"revert-53Rémy Coutable2016-04-251-0/+22
| | | | | | This reverts commit f5e87590d463b4b3d1bf5cd6b49a9d0d60acd552. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Update post receive worker so it logs a unique JID in sidekiqaiionx/gitlab-shell-aiionx-post_receive_jidaiionx2016-04-191-2/+4
|
* Remove branch functionalityRobert Schilling2016-04-191-15/+0
|
* Remove rm-tag commandRobert Schilling2016-04-181-7/+0
|
* Remove unused #list_remote_tagsRobert Schilling2016-04-161-22/+0
|
* Revert "Do not prune objects during 'git gc'"Jacob Vosmaer2016-04-061-1/+1
| | | | | | | This reverts commit 1ca8a44f0baa1728650308fe992f42660170ae16. Never pruning loose objects at all is not really a solution for anything, and it causes annoying `git gc --auto` warnings.
* Add new command to list tags from a remote repo.Rubén Dávila2016-03-311-1/+24
| | | | | | The output of the `git ls-remote` command is written to the STDOUT so the client can read and parse the list of tags. If there is an error it's also written to STDOUT.
* Add the ability to fetch remote repo without tags.gl_ee_issue_116Rubén Dávila2016-03-301-2/+6
| | | | | | When fetching remote repo with tags the new remote tags are mixed in with the local tags (all tags are saved under refs/tags), this affects the UI of the Project given that we're showing up tags of a remote repo.
* Add encoding for the ssh key on the urlPablo Carranza2016-03-241-1/+1
|
* Change use of fingerprint for whole keyPablo Carranza2016-03-241-2/+2
|
* Change API endpoint to authorized_keysPablo Carranza2016-03-241-1/+1
|
* Add authorized keys bin script to find keys by fingerprintPablo Carranza2016-03-243-13/+19
|
* Add ssh-key resource get to gitlab_netPablo Carranza2016-03-241-0/+5
| | | | | This provides the integration point to the internal API to get the ssh key from the internal API.
* Add new commands: push-branches and delete-remote-branches.Rubén Dávila2016-03-211-0/+43
|
* get git annex to work when using custom SSH portJames Lopez2016-03-161-3/+2
|
* Do not prune objects during 'git gc'Jacob Vosmaer2016-03-141-1/+1
| | | | | This is a workaround to reduce the impact of https://gitlab.com/gitlab-org/gitlab-ce/issues/13524 .
* Remove redundant `|| false`Douwe Maan2016-03-031-1/+1
|
* Added an optional --force parameter for gitlab-projects fetch-remotefeature/fetch-remote-forcedGabriel Mazetto2016-03-031-1/+6
| | | | | | The optional parameter will decide wheter to fetch using --force or not. fetching with --force is a requirement for Gitlab Geo secondary node replication.
* Actually use the read_timeout config optionJacob Vosmaer2016-02-091-1/+5
|
* Log duration of HTTP API requestsnet-read-timeoutJacob Vosmaer2016-02-091-0/+5
|
* Use an HTTP timeout of 5 minutes by defaultJacob Vosmaer2016-02-091-6/+11
|
* Merge branch 'master' of https://gitlab.com/jnijhof/gitlab-shellJeroen Nijhof2016-01-041-2/+13
|\ | | | | | | | | Conflicts: lib/gitlab_projects.rb
| * Check if path exists for gcJeroen Nijhof2015-11-191-0/+4
| |
| * Added git gc for housekeepingJeroen Nijhof2015-10-211-3/+10
| |
* | Merge branch 'remove-trailing-slashes' into 'master' v2.6.9Douwe Maan2015-12-141-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | Remove trailing slashes from gitlab_url They do not play nice with gitlab-workhorse (or rather Golang net/http DefaultServemux). See merge request !35
| * | Be more consistent about default gitlab_urlremove-trailing-slashesJacob Vosmaer2015-12-111-1/+1
| | |
| * | Remove trailing slashes from gitlab_urlJacob Vosmaer2015-12-111-1/+1
| | | | | | | | | | | | | | | They do not play nice with gitlab-workhorse (or rather Golang net/http DefaultServemux).
* | | Merge branch 'stricter-exec_cmd' into 'master' Dmitriy Zaporozhets2015-12-011-12/+20
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stricter exec cmd In response to the gitlab-shell 2.6.6-2.6.7 remote code execution vulnerability. See merge request !33
| * | | Add comment about untrusted origin_cmdstricter-exec_cmdJacob Vosmaer2015-11-261-0/+3
| | | |