Commit graph

16 commits

Author SHA1 Message Date
Chris Wilson
0f1273fa44 Add configurable timeout for git fetch and clone operations
GitLab uses the import_project method in GitLab Shell,
This method uses a timeout for the operation, hardcoded to 800 seconds.
With this MR the timeout is now configurable in the gitlab_shell
settings.
2017-04-27 10:51:35 +10:00
Stan Hu
54849afc6c Handle SSH keys that have multiple spaces between each marker
Notice what happens when a user adds a key with a space in between:

```
irb(main):004:0> 'ssh-rsa  foobar'.split(/ /)
=> ["ssh-rsa", "", "foobar"]
```

This would cause gitlab-shell to receive a blank argument for the actual
key, leading to users unable to login.
2017-04-04 23:12:08 -07:00
Robert Speicher
d9aca74115 Merge branch 'fix-github-importer-slowness' into 'master'
Improve performance of GitHub importer

Closes #28183

See merge request !10273
2017-04-03 21:26:41 +00:00
Douglas Barbosa Alexandre
ff9eb3042f Set the right timeout for Gitlab::Shell#fetch_remote 2017-04-03 16:36:14 -03:00
Douglas Barbosa Alexandre
336ba94a7b Fetch GitHub project as a mirror to get all refs at once 2017-04-03 15:50:22 -03:00
Robin Bobbitt
059e11d87f Fix race condition in namespace directory creation 2017-04-03 09:35:12 -04:00
Sean McGivern
811e598f60 Enable and autocorrect the CustomErrorClass cop 2017-03-01 15:28:10 +00:00
Douwe Maan
1fe7501b49 Revert "Prefer leading style for Style/DotPosition"
This reverts commit cb10b725c8929b8b4460f89c9d96c773af39ba6b.
2017-02-23 09:33:05 -06:00
Douwe Maan
206953a430 Prefer leading style for Style/DotPosition 2017-02-23 09:32:22 -06:00
Douwe Maan
5c7f9d69e3 Fix code for cops 2017-02-23 09:31:57 -06:00
Douwe Maan
7ea641b6d0 Enable Style/ColonMethodCall 2017-02-23 09:31:57 -06:00
Douwe Maan
215228b477 Enable Performance/RedundantBlockCall 2017-02-23 09:31:57 -06:00
Rémy Coutable
d8752015b3 Merge branch 'fix/import-hooks' into 'master'
Fix import webhooks performance issue

Closes #27958

See merge request !9197
2017-02-16 15:00:40 +00:00
James Lopez
b3fb5b4f26 Use gitlab shell import instead of manually creating the webhooks
Also update repo restorer to use project wiki method.
2017-02-16 10:02:26 +01:00
Dmitriy Zaporozhets
6676b4f0dd
Use Namespace#full_path instead of Namespace#path
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-02-14 18:38:20 +02:00
Rémy Coutable
f575fe46a7 Move Gitlab::Shell and Gitlab::ShellAdapter files to lib/
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-01-27 16:16:55 +01:00
Renamed from lib/gitlab/backend/shell.rb (Browse further)