summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '35385-allow-git-pull-push-on-project-redirects' into 'master'Douwe Maan2017-12-071-1/+1
|\ | | | | | | | | Prints a message if project was renamed See merge request gitlab-org/gitlab-shell!175
| * Prints a message if project was redirected35385-allow-git-pull-push-on-project-redirectsMayra Cabrera2017-12-071-1/+1
| |
* | Use 'git clone --no-local' when creating a forkJacob Vosmaer (GitLab)2017-12-061-2/+2
| |
* | Add a 'fork-repository' command that works with hashed storageNick Thomas2017-12-011-0/+31
|/ | | | | | | The existing 'fork-project' command cannot work with hashed storage as the source project basename differs from the destination repository basename. It is deprecated by the addition of 'fork-repository' and should be removed in the next major version.
* Add relative git object dir envvars to check access requestfeature/add-pwd-envvar-to-check-access-requestAhmad Sherif2017-10-102-6/+41
|
* pass gl_username through to hooksDavid Turner2017-09-283-10/+21
|
* Adds --force option to push branches.add-force-push-option-to-push-branchesTiago Botelho2017-09-191-1/+6
|
* Support new /internal/pre-receive API endpoint for post-receivegitaly-redis-refactorAlejandro Rodríguez2017-09-051-0/+8
|
* Support new /internal/post-receive API endpointAlejandro Rodríguez2017-08-302-20/+53
|
* Support old versions of ruby without monotonic clockGabriel Mazetto2017-08-091-1/+5
|
* Fix SSH support for Git for Windows v2.14sh-fix-git-upload-packStan Hu2017-08-061-3/+12
| | | | | | | Git For Windows 2.14 has a patch that changes `git-upload-pack` to `git upload-pack`. To make this work for gitlab-shell, just map this to `git-upload-pack`. Closes gitlab-org/gitlab-ce#36028
* Use git_config_options instead of git_config_parameters for Gitaly requestssh-support-gitaly-upload-pack-unhide-refsStan Hu2017-08-031-7/+10
|
* Merge branch 'update-redis-rb-3.3.3' into 'master'Douwe Maan2017-08-035-15/+73
|\ | | | | | | | | Bump redis-rb library to 3.3.3 See merge request !151
| * Bump redis-rb library to 3.3.3update-redis-rb-3.3.3Stan Hu2017-07-225-15/+73
| |
* | Fix setting permissions of SSH key tempfilesNick Thomas2017-08-021-5/+8
| |
* | Require tempfile to avoid a missing constant errorNick Thomas2017-08-021-0/+1
| |
* | Implement SSH authentication support in RubyNick Thomas2017-07-311-11/+67
| |
* | Merge branch 'sh-defer-reference-counter-load' into 'master'Robert Speicher2017-07-261-2/+6
|\ \ | | | | | | | | | | | | Optimize gitlab-projects by deferring the loading of gitlab_reference_counter See merge request !149
| * | Optimize gitlab-projects by deferring the loading of gitlab_reference_countersh-defer-reference-counter-loadStan Hu2017-07-211-2/+6
| | | | | | | | | | | | | | | | | | Loading gitlab_reference_counter loads gitlab_net, which adds an additional 100-200 ms of time. That file pulls in a vendored Redis library among other things.
* | | Make geo_node a default parametersh-show-all-refsStan Hu2017-07-242-2/+2
| | |
* | | Support unhiding of all refs for Geo NodesStan Hu2017-07-213-5/+16
| |/ |/| | | | | | | | | 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.
* | Handle internal API errors when getting merge request URLsonly-parse-mr-urls-on-successSean McGivern2017-07-121-1/+8
|/
* Merge branch 'gitaly-124-gitaly-ssh' into 'master'Robert Speicher2017-07-072-6/+12
|\ | | | | | | | | Gitaly SSH Client See merge request !139
| * no more single-value mergeKim "BKC" Carlbäcker2017-07-071-3/+1
| |
| * metrics makes no sense because 'exec'Kim "BKC" Carlbäcker2017-07-071-4/+2
| |
| * hashes have .include? not .has?Kim "BKC" Carlbäcker2017-07-071-1/+1
| |
| * type-oKim "BKC" Carlbäcker2017-07-061-1/+1
| |
| * We need metrics loggingKim "BKC" Carlbäcker2017-07-061-2/+4
| |
| * no more attrsKim "BKC" Carlbäcker2017-07-061-1/+1
| |
| * - Update gitaly vendoringKim "BKC" Carlbäcker2017-07-032-7/+15
| | | | | | | | | | - Wire up gitaly-*-pack to Gitaly. Don't pass git-*-pack to go - Disable tests for go1.5 & 1.6
* | Revert "Merge branch ↵revert-gl-repositoryAlejandro Rodríguez2017-07-032-10/+12
|/ | | | | | | '86-follow-up-from-use-gl_repository-if-present-when-enqueing-sidekiq-postreceive-jobs' into 'master'" This reverts commit fa6343515ba65423e9de4c98c6005facc6059938, reversing changes made to 62af7f6af72728cecb98c5275d8b7aeb3953e564.
* Add list-key-ids commandMichael Kozono2017-06-281-0/+13
|
* Remove empty fileDmitriy Zaporozhets2017-06-211-0/+0
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Merge branch 'master' into remove-references-to-v3-internal-apiDmitriy Zaporozhets2017-06-212-12/+10
|\ | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * Remove old `project` parameter, use `gl_repository` instead86-follow-up-from-use-gl_repository-if-present-when-enqueing-sidekiq-postreceive-jobsAlejandro Rodríguez2017-06-202-12/+10
| |
* | Remove references to V3 internal APIremove-references-to-v3-internal-apiAdam Niedzielski2017-06-161-12/+8
|/ | | | | | | In the main Rails app we use exactly the same code for /api/v3/internal and /api/v4/internal This means that we can move gitlab-shell to V4 in preparation for sunsetting V3
* Use gl_repository if present when enqueing Sidekiq PostReceive jobs83-follow-up-from-handle-gl_repository-env-variable-and-use-it-in-api-callsAlejandro Rodríguez2017-05-301-2/+2
|
* Make gitaly executable mapping clearergo-wrappersJacob Vosmaer2017-05-231-8/+12
|
* Explain chdirJacob Vosmaer2017-05-231-0/+1
|
* Use gitaly-upload-pack and gitaly-receive-packJacob Vosmaer2017-05-231-4/+24
|
* Setup use of gl-repository to enqueue PostReceive sidekiq jobsAlejandro Rodríguez2017-05-112-2/+4
|
* Handle GL_REPOSITORY env variable and use it in api callsAlejandro Rodríguez2017-05-115-19/+29
|
* adds timeout option to push branches and respective test suiteTiago Botelho2017-03-291-7/+10
|
* Fetch repositories with --quiet option by defaultDouglas Barbosa Alexandre2017-03-271-0/+1
| | | | | | | This will allow us to prevent deadlocks when dealing with extremely long outputs from `git fetch`. All the pipes (stdin, stdout, and stderr) have limited buffers, and when one fills up, everything is going to stop.
* Remove git annex supportPawel Chojnacki2017-02-242-45/+2
|
* Use api/v4 for gitaly notification and add testsgitaly-post-receive-2Alejandro Rodríguez2017-02-101-9/+13
|
* Add gitaly notification on post-receive hookAlejandro Rodríguez2017-02-072-0/+10
|
* Set a 'Host' header on unix socketsJacob Vosmaer2017-01-031-0/+6
| | | | Workaround for a bug in the HTTPUNIX client.
* Pass relevant git environment variables while calling `/allowed`Timothy Andrew2016-12-162-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | 1. Starting version 2.11, git changed the way the pre-receive flow works. - Previously, the new potential objects would be added to the main repo. If the pre-receive passes, the new objects stay in the repo but are linked up. If the pre-receive fails, the new objects stay orphaned in the repo, and are cleaned up during the next `git gc`. - In 2.11, the new potential objects are added to a temporary "alternate object directory", that git creates for this purpose. If the pre-receive passes, the objects from the alternate object directory are migrated to the main repo. If the pre-receive fails the alternate object directory is simply deleted. 2. In our workflow, the pre-recieve script calls the `/allowed` endpoint on the rails server. This `/allowed` endpoint calls out directly to git to perform various checks. These direct calls to git do _not_ have the necessary environment variables set which allow access to the "alternate object directory" (explained above). Therefore these calls to git are not able to access any of the new potential objects to be added during this push. 3. We fix this by passing the relevant environment variables (GIT_ALTERNATE_OBJECT_DIRECTORIES, GIT_OBJECT_DIRECTORY, and GIT_QUARANTINE_PATH) to the `/allowed` endpoint, which will then include these environment variables while calling out to git.
* Make custom hooks dir configurableSean McGivern2016-12-122-8/+17
| | | | | | | | Add a new configuration option, custom_hooks_dir. When this is set, we will look for global custom hooks in: <custom_hooks_dir>/{pre-receive,update,post-receive}.d/* When this is not set, default to <REPO_PATH>/hooks.