summaryrefslogtreecommitdiff
path: root/lib/gitlab/backend
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'pmq20/gitlab-ce-psvr/change-head' into 'master' Robert Speicher2016-04-151-13/+0
|\ | | | | | | | | | | | | | | | | Use rugged to change HEAD _Originally opened at !2850 by @pmq20._ Needless to invoke gitlab_shell here, which is slow. See merge request !3705
| * Remove Gitlab::Shell#update_repository_head since it's not used anymorepmq20/gitlab-ce-psvr/change-headRémy Coutable2016-04-151-13/+0
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge branch 'rugged-delete-tag' into 'master' Rémy Coutable2016-04-151-13/+0
|\ \ | | | | | | | | | | | | | | | | | | Delete tags via rugged Improve the performance by directly using rugged instead of shelling out to a git operation. See merge request !3748
| * | Delete tags via ruggedRobert Schilling2016-04-151-13/+0
| |/
* | Remove unused backend methodsRobert Schilling2016-04-151-27/+0
|/
* Increase project import timeout from 4 minutes to 15 minutesDrew Blessing2016-02-041-1/+1
| | | | | | | | | Many users were experiencing timeouts when we only allowed 4 minutes before a timeout. A 15 minute timeout is more than reasonable and prevents us from having to add a configuration for this. Fixes gitlab-org/gitlab-ee#246
* fixed move project method in migrationJames Lopez2016-02-021-1/+1
|
* Merge gitlab.com:gitlab-org/gitlab-ceJeroen Nijhof2016-01-062-8/+21
|\
| * Fixed Rubocop offensesGabriel Mazetto2015-12-151-1/+1
| |
| * Fix specsKamil Trzcinski2015-12-111-1/+1
| |
| * Add runners tokenKamil Trzcinski2015-12-111-1/+1
| |
| * Migrate CI::Project to ProjectKamil Trzcinski2015-12-111-1/+3
| |
| * Store and show reason why import failed.Douwe Maan2015-11-181-3/+4
| |
| * Add support for git lfs.lfsMarin Jankovski2015-11-161-1/+4
| |
| * Switch to gitlab-workhorseJacob Vosmaer2015-10-291-1/+1
| |
| * Fix cloning Wiki repositories via HTTPStan Hu2015-10-221-1/+8
| | | | | | | | | | | | | | Cloning a project Wiki over HTTP would end up cloning the main repository since the .wiki extension was being stripped. Closes #3106
* | Added housekeeping for git repositoriesJeroen Nijhof2015-10-211-0/+12
|/
* Merge branch 'master' into git-archive-golanggit-archive-golangDouwe Maan2015-10-151-1/+2
|\
| * Normalize space-like characters in keys before output to gitlab-shellrs-issue-2970Robert Speicher2015-10-081-1/+2
| | | | | | | | | | | | | | gitlab-shell expects only one tab separator per key, and an SSH key with a tab character in the comment, for example, would break things. Closes #2970
* | Let gitlab-git-http-server handle archive downloadsJacob Vosmaer2015-10-081-1/+8
|/ | | | This change relies on changes in gitlab_git and gitlab-git-http-server.
* Merge branch 'grack-auth-new-instance' into 'master'Dmitriy Zaporozhets2015-09-021-0/+8
|\ | | | | | | | | | | | | | | | | Avoid instance variable re-use trouble This is the quickest/dumbest/safest way I could think of to prevent the instance variable reuse problems we have on dev.gitlab.org now. See merge request !1237
| * Avoid instance variable re-use troubleJacob Vosmaer2015-09-021-0/+8
| | | | | | | | | | This is the quickest/dumbest/safest way I could think of to prevent the instance variable reuse problems we have on dev.gitlab.org now.
* | Drone CI serviceKirilll Zaitsev2015-09-021-10/+15
|/
* Replace grack with gitlab-git-http-serverJacob Vosmaer2015-08-311-8/+8
|
* Revert "Merge branch 'revert-satellites' into 'master' "Dmitriy Zaporozhets2015-08-111-14/+0
| | | | | This reverts commit 5daf44b7c86e0e2641a902b1da8b01d91fa3dbfa, reversing changes made to 2f706fbd231cabe7a76a5d17ac44285aaaf8592c.
* Revert "Merge branch 'drop-satellites'"Dmitriy Zaporozhets2015-08-111-0/+14
| | | | | | | This reverts commit 957e849f41d96fa9778fcdd06792d2f0274b29ab, reversing changes made to 6b9dbe9f5a175a8162abf296367f561bab3eea1a. Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Merge branch 'master' into drop-satellitesDmitriy Zaporozhets2015-08-042-2/+20
|\ | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * Fix style pointsGitLab2015-07-282-8/+7
| | | | | | | | To make Rubocop and Douwe happy
| * Send GL_ID to gitlab-git-http-server as JSONGitLab2015-07-281-3/+4
| |
| * Handle missing @user during Git HTTP requestsGitLab2015-07-281-1/+10
| |
| * Experimental support for gitlab-git-http-serverJacob Vosmaer2015-07-282-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | https://gitlab.com/gitlab-org/gitlab-git-http-server This change introduces the GITLAB_GRACK_AUTH_ONLY environment variable. When set, Grack requests to GitLab will only respond with the user's GL_ID (if the request is OK) or an error. This allows gitlab-git-http-server to use the main GitLab application as an authentication and authorization backend. If we like how this works we should drop the GITLAB_GRACK_AUTH_ONLY variable at some point in the future.
* | Remove satellitesDmitriy Zaporozhets2015-07-151-14/+0
|/
* Fix downloading of patches on public merge requests when user logged outStan Hu2015-06-231-1/+3
| | | | | | Closes #1225 Closes #1854 Closes #1858
* Move repository when project is removedDmitriy Zaporozhets2015-06-031-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ths commit does next: * When we remove project we move repository to path+deleted.git * Then we schedule removal of path+deleted with sidekiq * If repository move failed we abort project removal This should help us with NFS issue when project get removed but repository stayed. The full explanation of problem is below: * rm -rf project.git * rm -rf removes project.git/objects/foo * NFS server renames foo to foo.nfsXXXX because some NFS client (think * Unicorn) still has the file open * rm -rf exits, but project.git/objects/foo.nfsXXX still exists * Unicorn closes the file, the NFS client closes the file (foo), and the * NFS server removes foo.nfsXXX * the directory project.git/objects/ still exists => problem So now we move repository and even if repository removal failed Repository directory is moved so no bugs with project removed but repository directory taken. User still able to create new project with same name. From administrator perspective you can easily find stalled repositories by searching `*+deleted.git` Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Remove Rack Attack monkey patches and bump to version 4.3.0Stan Hu2015-05-222-32/+0
|
* Warn when gitlab-shell version doesn't match requirement.shell-version-warningDouwe Maan2015-04-061-1/+1
|
* Merge branch 'api-internal-errors' into 'master'Dmitriy Zaporozhets2015-03-251-1/+1
|\ | | | | | | | | | | | | | | | | | | Respond with full GitAccess error if user has project read access. Should help with debugging #1236. cc @marin See merge request !437
| * Refactor GitAccess to use instance variables.Douwe Maan2015-03-241-1/+1
| |
* | Reduce Rack Attack false positives by clearing out auth failure count uponStan Hu2015-03-242-14/+62
|/ | | | | | | | successful Git over HTTP authentication. Add logging when a ban goes into effect for debugging. Issue #1171
* Don't leak information about private project existence via Git-over-SSH/HTTP.Douwe Maan2015-03-021-24/+28
|
* Fix git-over-httpDmitriy Zaporozhets2015-02-231-0/+1
|
* Rubocop: no trailing newlinesDmitriy Zaporozhets2015-02-021-1/+0
|
* Rubocop enabled for: Use spaces inside hash literal bracesDmitriy Zaporozhets2015-02-021-4/+4
|
* an ability to clone project with oauth2 tokenValery Sizov2015-01-281-1/+13
|
* White-list requests from 127.0.0.1Jacob Vosmaer2015-01-061-4/+9
| | | | | | On some misconfigured GitLab servers, if you look in production.log it looks like all requests come from 127.0.0.1. To avoid unwanted banning we white-list 127.0.0.1 with this commit.
* Add more comments explaining how we block IPsJacob Vosmaer2014-12-181-1/+4
|
* Block Git HTTP Basic Auth after 10 failed attemptsJacob Vosmaer2014-12-151-2/+12
|
* Better message for failed pushes because of git hooksValery Sizov2014-11-181-1/+1
| | | | | | Conflicts: lib/gitlab/git_access.rb spec/lib/gitlab/git_access_spec.rb
* Factor GITLAB_SHELL_VERSION get methodCiro Santilli2014-11-051-0/+7
|
* Don't output to stdout from lib non-interactive methodsCiro Santilli2014-11-051-13/+24
| | | | It pollutes the test output too much.