Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge branch 'remove-ensure-ref-fetched-from-controllers' into 'master' | Sean McGivern | 2017-11-06 | 1 | -5/+5 |
|\ | | | | | | | | | | | | | removed the #ensure_ref_fetched from all controllers Closes #36061 See merge request gitlab-org/gitlab-ce!15129 | ||||
| * | removed the #ensure_ref_fetched from all controllers | micael.bergeron | 2017-11-03 | 1 | -5/+5 |
| | | | | | | | | | | | | | | | | also, I refactored the MergeRequest#fetch_ref method to express the side-effect that this method has. MergeRequest#fetch_ref -> MergeRequest#fetch_ref! Repository#fetch_source_branch -> Repository#fetch_source_branch! | ||||
* | | Merge branch 'jej/fix-lfs-changes-laziness' into 'master' | Douwe Maan | 2017-11-06 | 3 | -19/+66 |
|\ \ | | | | | | | | | | | | | Implement lazy popen so LfsChanges doesn't have to wait for rev-list to complete See merge request gitlab-org/gitlab-ce!15180 | ||||
| * | | Gitlab::Git::RevList and LfsChanges use lazy popenjej/fix-lfs-changes-laziness | James Edwards-Jones | 2017-11-06 | 2 | -19/+49 |
| | | | |||||
| * | | Gitlab::Git::Popen can lazily hand output to a block | James Edwards-Jones | 2017-11-06 | 1 | -0/+17 |
| | | | | | | | | | | | | | | | | | | This allows input to start processing immediately without waiting for the process to complete. This also allows long or infinite inputs to be partially processed, which will termiate the process when reading stops with SIGPIPE. | ||||
* | | | Encapsulate git operations for mirroring in Gitlab::Git | Alejandro Rodríguez | 2017-11-03 | 1 | -16/+61 |
| | | | |||||
* | | | Add `Gitlab::Git::Repository#fetch` command | Alejandro Rodríguez | 2017-11-03 | 1 | -0/+15 |
| |/ |/| | |||||
* | | Merge branch 'gitaly-ff-merge' into 'master' | Rémy Coutable | 2017-11-02 | 1 | -21/+39 |
|\ \ | |/ |/| | | | | | | | | | Incorporate Gitaly's OperationService.UserFFBranch RPC Closes gitaly#693 See merge request gitlab-org/gitlab-ce!15040 | ||||
| * | Incorporate Gitaly's OperationService.UserFFBranch RPCgitaly-ff-merge | Alejandro Rodríguez | 2017-10-31 | 1 | -21/+39 |
| | | |||||
* | | Fix encoding issue with Repository.ls_files | Kim Carlbäcker | 2017-11-02 | 1 | -0/+5 |
| | | |||||
* | | Merge branch 'jej/lfs-change-detection' into 'master' | Douwe Maan | 2017-11-01 | 4 | -29/+179 |
|\ \ | |/ |/| | | | | | Detect changes to LFS pointers for pruning and integrity check See merge request gitlab-org/gitlab-ce!14785 | ||||
| * | Detect changes to LFS pointers for pruning and integrity check | James Edwards-Jones | 2017-11-01 | 4 | -29/+179 |
| | | | | | | | | Gitlab::Git::Blob.batch_lfs_metadata can be used to check for LFS pointers. It uses a lazy enumorator and filters by blob size | ||||
* | | Fetch the merged branches at once | Lin Jen-Shin (godfat) | 2017-10-27 | 2 | -0/+58 |
| | | |||||
* | | Fix the incorrect value being used to set GL_USERNAME on hooksgl-username-hook-fix | Alejandro Rodríguez | 2017-10-25 | 1 | -13/+15 |
| | | |||||
* | | Merge branch 'gitaly-ff-merge-preparation' into 'master' | Rémy Coutable | 2017-10-25 | 1 | -0/+54 |
|\ \ | | | | | | | | | | | | | | | | | | | Move all rugged operation for ff_merge inside Gitlab::Git Closes gitaly#683 See merge request gitlab-org/gitlab-ce!15011 | ||||
| * | | Move all rugged operation for ff_merge inside Gitlab::Gitgitaly-ff-merge-preparation | Alejandro Rodríguez | 2017-10-24 | 1 | -0/+54 |
| |/ | | | | | | | We also delete some unused code related to the aforementioned feature. | ||||
* | | Merge branch 'gitaly-gl-username' into 'master' | Douwe Maan | 2017-10-24 | 1 | -2/+20 |
|\ \ | | | | | | | | | | | | | Support `Gitaly::User`'s gl_username field See merge request gitlab-org/gitlab-ce!15016 | ||||
| * | | Support `Gitaly::User`'s gl_username fieldgitaly-gl-username | Alejandro Rodríguez | 2017-10-23 | 1 | -2/+20 |
| |/ | | | | | | | | | We also unify conversions from and to `Gitaly::User`s in the `Gitlab::Git::User` class. | ||||
* | | Allow enabling the circuitbreaker using an env variablebvl-circuitbreaker-backoff | Bob Van Landuyt | 2017-10-23 | 1 | -2/+13 |
| | | | | | | | | That way we can enable the circuitbreaker for just one host at a time. | ||||
* | | Perform the stat check multiple times when checking a storage | Bob Van Landuyt | 2017-10-23 | 2 | -1/+27 |
| | | | | | | | | | | | | | | | | Instead of only checking once within a timeout, check multiple times within a timeout. That means with a timeout of 30 seconds and 3 retries. Each try would be allowed 20 seconds. | ||||
* | | Implement backoff for the circuitbreaker | Bob Van Landuyt | 2017-10-23 | 2 | -178/+94 |
|/ | | | | | | | | | | The circuitbreaker now has 2 failure modes: - Backing off: This will raise the `Gitlab::Git::Storage::Failing` exception. Access to the shard is blocked temporarily. - Circuit broken: This will raise the `Gitlab::Git::Storage::CircuitBroken` exception. Access to the shard will be blocked until the failures are reset. | ||||
* | Merge branch 'bvl-do-not-use-redis-keys' into 'master' | Rémy Coutable | 2017-10-17 | 2 | -30/+4 |
|\ | | | | | | | | | Avoid using `Redis#keys` See merge request gitlab-org/gitlab-ce!14889 | ||||
| * | Don't use `Redis#keys` in the circuitbreakerbvl-do-not-use-redis-keys | Bob Van Landuyt | 2017-10-17 | 2 | -30/+4 |
| | | |||||
* | | Merge branch 'bvl-circuitbreaker-improvements' into 'master' | Douwe Maan | 2017-10-17 | 2 | -18/+40 |
|\ \ | | | | | | | | | | | | | Make the circuitbreaker configurable at runtime See merge request gitlab-org/gitlab-ce!14842 | ||||
| * | | Read circuitbreaker settings from `Gitlab::CurrentSettings` | Bob Van Landuyt | 2017-10-17 | 2 | -18/+40 |
| | | | | | | | | | | | | Instead of from the configuration file | ||||
* | | | Merge branch 'git-env-handle-arrays' into 'master' | Sean McGivern | 2017-10-16 | 1 | -5/+37 |
|\ \ \ | |/ / |/| | | | | | | | | Add Gitlab::Git::Env.to_env_hash See merge request gitlab-org/gitlab-ce!14841 | ||||
| * | | Add Gitlab::Git::Env.to_env_hash | Jacob Vosmaer | 2017-10-16 | 1 | -5/+37 |
| | | | |||||
* | | | Merge branch 'conflict-resolution-refactor' into 'master' | Sean McGivern | 2017-10-16 | 1 | -0/+224 |
|\ \ \ | | | | | | | | | | | | | | | | | Conflict resolution refactor See merge request gitlab-org/gitlab-ce!14747 | ||||
| * | | | Create a Gitlab::Git submodule for conlict-related files | Alejandro Rodríguez | 2017-10-12 | 1 | -13/+13 |
| | | | | | | | | | | | | | | | | Rename classes to (hopefully) clearer names while we're doing that. | ||||
| * | | | Refactor conflict resolution to contain git ops within Gitlab::Git | Alejandro Rodríguez | 2017-10-12 | 1 | -0/+224 |
| | | | | | | | | | | | | | | | | | | | | This prepares the codebase for a Gitaly migration. See https://gitlab.com/gitlab-org/gitaly/issues/553 | ||||
* | | | | Popen with a timeout | Andrew Newdigate | 2017-10-16 | 1 | -0/+132 |
| |_|/ |/| | | |||||
* | | | Merge Merge Requests via Gitaly | Jacob Vosmaer | 2017-10-13 | 1 | -0/+39 |
|/ / | |||||
* | | Merge branch 'fix/rugged-alternate-paths' into 'master' | Douwe Maan | 2017-10-12 | 1 | -2/+2 |
|\ \ | | | | | | | | | | | | | | | | | | | Fix the format of rugged alternate directory list Closes #39046 See merge request gitlab-org/gitlab-ce!14840 | ||||
| * | | Fix the format of rugged alternate directory listfix/rugged-alternate-paths | Ahmad Sherif | 2017-10-12 | 1 | -2/+2 |
| |/ | | | | | | | Fixes #39046 | ||||
* | | Merge branch 'gitaly-fetch-remote' into 'master' | Dmitriy Zaporozhets | 2017-10-12 | 1 | -0/+15 |
|\ \ | |/ |/| | | | | | | | | | Add `Gitlab::Git::Repository#fetch` command Closes gitaly#586 See merge request gitlab-org/gitlab-ce!14772 | ||||
| * | Add `Gitlab::Git::Repository#fetch` commandgitaly-fetch-remote | Alejandro Rodríguez | 2017-10-09 | 1 | -0/+15 |
| | | |||||
* | | Pass git object dir attributes as relative paths to Gitaly | Ahmad Sherif | 2017-10-11 | 1 | -18/+39 |
|/ | | | | Fixes gitaly#629 | ||||
* | Replaces `tag: true` into `:tag` in the specs | Jacopo | 2017-10-07 | 5 | -19/+19 |
| | | | | | | Replaces all the explicit include metadata syntax in the specs (tag: true) into the implicit one (:tag). Added a cop to prevent future errors and handle autocorrection. | ||||
* | Let fetch_ref pull from Gitaly instead of from disk | Jacob Vosmaer | 2017-10-04 | 1 | -0/+17 |
| | |||||
* | Merge branch 'gitaly-delete-branch' into 'master' | Douwe Maan | 2017-10-04 | 1 | -0/+28 |
|\ | | | | | | | | | Implement OperationService.UserDeleteBranch Gitaly RPC See merge request gitlab-org/gitlab-ce!14603 | ||||
| * | Add OperationService.UserDeleteBranch Gitaly RPCgitaly-delete-branch | Alejandro Rodríguez | 2017-10-03 | 1 | -0/+28 |
| | | |||||
* | | Restore User.from_gitaly | Jacob Vosmaer (GitLab) | 2017-10-03 | 1 | -0/+14 |
|/ | |||||
* | Merge branch 'revert-configurable-size-limits' into 'master' | Douwe Maan | 2017-10-02 | 2 | -36/+5 |
|\ | | | | | | | | | Revert "Increase diff limits to 100 KB for collapse and 200 KB overall" See merge request gitlab-org/gitlab-ce!14628 | ||||
| * | Revert "Increase diff limits to 100 KB for collapse and 200 KB overall" | Sean McGivern | 2017-10-02 | 2 | -36/+5 |
| | | | | | | | | This reverts commit 1d3c33b57eeb39df76e78fd37c86532c02aa22ac. | ||||
* | | Merge branch 'gitaly-add-branch' into 'master' | Sean McGivern | 2017-10-02 | 1 | -27/+5 |
|\ \ | |/ |/| | | | | | | | | | Implement OperationService.UserAddBranch Gitaly RPC Closes gitaly#544 See merge request gitlab-org/gitlab-ce!14522 | ||||
| * | Add a factory for `Gitaly::GitCommit`s | Alejandro Rodríguez | 2017-09-30 | 1 | -27/+5 |
| | | |||||
* | | Add username as GL_USERNAME in hooks (http) | David Turner | 2017-09-29 | 3 | -12/+16 |
|/ | | | | | | | | When calling pre-receive, post-receive, and update hooks, add the GitLab username as the GL_USERNAME environment variable. This patch only handles cases where pushes are over http, or via the web interface. Later, we will address the ssh case. | ||||
* | Make Repository#has_visible_content more efficient | Jacob Vosmaer (GitLab) | 2017-09-29 | 1 | -0/+34 |
| | |||||
* | Handle error when fetching ref for MR with deleted source branch38319-nomethoderror-undefined-method-sha-for-nil-nilclass | Sean McGivern | 2017-09-28 | 1 | -0/+78 |
| | | | | | | If the ref doesn't exist, and the source branch is deleted, we can't get it back easily. Previously, we ignored this error by shelling out, so replicate that behaviour. | ||||
* | Migrate Gitlab::Git::Repository#log to Gitaly | Kim "BKC" Carlbäcker | 2017-09-25 | 1 | -1/+9 |
| |