Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-11-28Commits API: Preserve file content in move operations if unspecifiedNick Thomas
2018-11-26Don't specify `shell` for Gitaly write-refBob Van Landuyt
Use shelling out to git to write refs instead of rugged, hoping to avoid creating invalid refs. To update HEAD we switched to using `git symbolic-ref`.
2018-11-26Update gitaly and gitaly-protoBob Van Landuyt
2018-11-19SSH public-key authentication for push mirroringNick Thomas
2018-11-13Enable even more frozen string in lib/gitlabgfyoung
Enables frozen string for the following: * lib/gitlab/fogbugz_import/**/*.rb * lib/gitlab/gfm/**/*.rb * lib/gitlab/git/**/*.rb * lib/gitlab/gitaly_client/**/*.rb * lib/gitlab/gitlab_import/**/*.rb * lib/gitlab/google_code_import/**/*.rb * lib/gitlab/gpg/**/*.rb * lib/gitlab/grape_logging/**/*.rb * lib/gitlab/graphql/**/*.rb * lib/gitlab/graphs/**/*.rb * lib/gitlab/hashed_storage/**/*.rb * lib/gitlab/health_checks/**/*.rb Partially address gitlab-org/gitlab-ce#47424.
2018-11-07Apply patches when creating MR via emailBob Van Landuyt
This allows users to add patches as attachments to merge request created via email. When an email to create a merge request is sent, all the attachments ending in `.patch` will be applied to the branch specified in the subject of the email. If the branch did not exist, it will be created from the HEAD of the repository. When the patches could not be applied, the error message will be replied to the user. The patches can have a maximum combined size of 2MB for now.
2018-11-07Add submodule update API endpointFrancisco Javier López
This new endpoint allow users to update a submodule's reference. The MR involves adding a new operation RPC operation in gitaly-proto (see gitlab-org/gitaly-proto!233) and change Gitaly to use this new version (see gitlab-org/gitaly!936). See gitlab-org/gitlab-ce!20949
2018-11-01Fix typos in comments and specsGeorge Tsiolis
2018-10-25Adds tracing messages for slow git pushesTiago Botelho
Whenever a git push takes more than 50 seconds the user will receive a trace from each check performed along with their timings
2018-10-02Remove Gitlab::Git::Repository#rugged and Gollum codeAlejandro Rodríguez
Cleanup code, and refactor tests that still use Rugged. After this, there should be no Rugged code that access the instance's repositories on non-test environments. There is still some rugged code for other tasks like the repository import task, but since it doesn't access any repository storage path it can stay.
2018-10-01Removes N+1 gitaly rpc call to fetch the last commit for pathTiago Botelho
Implements list_last_commits_for_tree to communicate with the ListLastCommitsForTree Gitaly RPC Bumps the Gitaly server version Bumps the Gitaly-Proto gem version
2018-09-27Adds chmod action to POST /projects/:id/repository/commits APIJacopo
With this action the user can update the execute_filemode of a given file in the repository.
2018-09-24Use `Gitlab::SafeRequestStore` in more placesMichael Kozono
Even if it doesn’t save lines of code, since people will tend to use code they’ve seen. And `SafeRequestStore` is safer since you don’t have to remember to check `RequestStore.active?`.
2018-09-21Correct Gitlab Capitalization in code filesMarcel Amirault
2018-09-17Merge branch 'osw-gitaly-diff-stats-client' into 'master'Douwe Maan
Add Gitaly diff stats RPC client See merge request gitlab-org/gitlab-ce!21732
2018-09-17Add Gitaly diff stats RPC clientOswaldo Ferreira
This adds a basic interface to fetch diff statistics given two SHAs. It's a requirement for #49399 #20282 and #19232.
2018-09-11Disable existing offenses for the CodeReuse copsYorick Peterse
This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
2018-09-07Merge branch 'osw-send-max-patch-bytes-to-gitaly' into 'master'Douwe Maan
Send max_patch_bytes to Gitaly via Gitaly::CommitDiffRequest Closes #50635 See merge request gitlab-org/gitlab-ce!21575
2018-09-07Merge branch 'zj-cleanup-port-gitaly' into 'master'Douwe Maan
Port cleanup tasks to use Gitaly Closes #40529 and gitaly#954 See merge request gitlab-org/gitlab-ce!21588
2018-09-07Port cleanup tasks to use GitalyZeger-Jan van de Weg
Rake tasks cleaning up the Git storage were still using direct disk access, which won't work if these aren't attached. To mitigate a migration issue was created. To port gitlab:cleanup:dirs, and gitlab:cleanup:repos, a new RPC was required, ListDirectories. This was implemented in Gitaly, through https://gitlab.com/gitlab-org/gitaly/merge_requests/868. To be able to use the new RPC the Gitaly server was bumped to v0.120. This is an RPC that will not use feature gates, as this doesn't scale on .com so there is no way to test it at scale. Futhermore, we _know_ it doesn't scale, but this might be a useful task for smaller instances. Lastly, the tests are slightly updated to also work when the disk isn't attached. Eventhough this is not planned, it was very little effort and thus I applied the boy scout rule. Closes https://gitlab.com/gitlab-org/gitaly/issues/954 Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/40529
2018-09-07Encode remote root refDouglas Barbosa Alexandre
2018-09-07Send max_patch_bytes to Gitaly via Gitaly::CommitDiffRequestOswaldo Ferreira
We used to apply this limitation on GitLab when using Rugged. Now that we've shifted to Gitaly, this parameter needs to be sent via a RPC request. Currently this value is hardcoded on Gitaly.
2018-09-06Add Gitlab::GitalyClient::RemoteService#find_remote_root_refDouglas Barbosa Alexandre
2018-08-17Fix merge requests not showing any diff files for big patchesAlejandro Rodríguez
2018-08-07Backport some changes from gitlab-org/gitlab-ee!6767Rubén Dávila
2018-08-02Set default timeout for deleting many refsZeger-Jan van de Weg
Prior to this change, this RPC had a fast_timeout. This timeout doesn't set no timeout on Sidekiq. Deleting many refs can take over a couple of seconds, so a default timeout would be neccesairy. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/49862
2018-07-25Use limit parameter to retrieve Wikis from GitalyStan Hu
Without this parameter, every load of a Wiki page will load all the Wiki pages in the repository for the sidebar. This is a significant performance penalty that can significant slow the display of all Wiki pages. Relates to #40101
2018-07-24Remove timeouts for long running requestsZeger-Jan van de Weg
2018-07-19Add missing Gitaly branch_update nil checksJacob Vosmaer (GitLab)
2018-07-18Incorporate Gitaly's RefService.FindAllRemoteBranches RPCAlejandro Rodríguez
2018-07-18Client implementation for Repository#new_commitsZeger-Jan van de Weg
After trying to remove the whole method in 8f69014af2902d8d53fe931268bec60f6858f160, this is a more gentle approach to the method. :) Prior to this change, new commit detection wasn't implemented in Gitaly, this was done through: https://gitlab.com/gitlab-org/gitaly/merge_requests/779 As the new implemented got moved around a bit, the whole RevList class got removed. Part of https://gitlab.com/gitlab-org/gitaly/issues/1233
2018-07-11Add a fast_timeout for the `ServerService.ServerInfo` endpointAndrew Newdigate
2018-07-10Make sure ConflictsService does not raise for conflicting submodulesSean McGivern
2018-07-09Merge branch 'update-rubocop'Sean McGivern
2018-07-09Resolve Naming/UncommunicativeMethodLin Jen-Shin
2018-07-09Use Gitaly's OperationService.UserUpdateBranch RPCAlejandro Rodríguez
2018-07-06Add Repository#set_config and #delete_configJacob Vosmaer
2018-07-05Updated Gitaly timeout valuesAndrew Newdigate
2018-07-03Remove more feature flagsJacob Vosmaer
2018-07-03Make OperationService RPC's mandatoryJacob Vosmaer (GitLab)
2018-06-29Fix MR diffs created with gitaly_diff_between enabledSean McGivern
When we save merge request diffs to the database, we need to expand the diff before doing so. That's so that we can expand diffs (within the normal limits) without hitting the repository, but just by going to the database. This is done implicitly - diffs are expanded unless we say otherwise. However, we have another option we can pass, that lets us enforce diff size limits, that defaults to true. Prior to this commit: - The Rugged code path defaulted to setting `expanded: true` and `enforce_limits: true`. - The Gitaly code path defaulted to setting `expanded: false` and `enforce_limits: true`. This was introduced by eb36fa17a6ae5cda8950904b5a52e6aa365ae591, which implemented the initial feature. Since then, if the `gitaly_diff_between` feature flag was enabled, MRs would have diffs that could not be expanded in some cases, with no fix other than to disable the feature flag and force push to the MR to refresh the diff in the database.
2018-06-27Make Gitaly signature RPC's mandatoryJacob Vosmaer
2018-06-26Client-side fix for Gitaly TreeEntry bugJacob Vosmaer
2018-06-15Migrate repo backup to gitalyAhmad Hassan
2018-06-13ListCommitByOid isn't called with an empty batchZeger-Jan van de Weg
Batching commits for performance improvements, might lead to empty batches being used. This isn't the case yet, but to guard against this in future cases, a guard clause is added.
2018-06-11Don't use Gitlab::Utils.nlbr in Gitlab::GitJacob Vosmaer (GitLab)
2018-06-08RefactorAhmad Hassan
2018-06-07Use RestoreCustomHooks RPC in restore rake taskAhmad Hassan
2018-06-01Add "deny disk access" Gitaly feature (tripswitch)Jacob Vosmaer (GitLab)
2018-05-30Fix encoding error in Gitaly::Commit::TreeEntryKim "BKC" Carlbäcker