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-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-26Treat Repository instances with the same disk path as the same hash keyDouwe Maan
2018-11-26Batch load only data from same repository when lazy object is accessedDouwe Maan
By specifying `key`, we get a different lazy batch loader for each repository, which means that accessing a lazy object from one repository will only result in that repository's objects being fetched, not those of other repositories, saving us some unnecessary Gitaly lookups.
2018-11-22Merge branch 'revert-fd6e3781' into 'master'Sean McGivern
Revert "Merge branch 'revert-e2aa2177' into 'master'" Closes #54267 See merge request gitlab-org/gitlab-ce!23237
2018-11-21Eliminate duplicated wordsTakuya Noguchi
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2018-11-20Revert "Merge branch 'revert-e2aa2177' into 'master'"Zeger-Jan van de Weg
This reverts merge request !23229
2018-11-20Revert "Merge branch 'zj-improve-gitaly-pb' into 'master'"Sean McGivern
This reverts merge request !23140
2018-11-19SSH public-key authentication for push mirroringNick Thomas
2018-11-16Show what RPC is called in the performance barZeger-Jan van de Weg
Now only the data was shown of the service, which is not valueable at times given some of those expose a lot of RPCs.
2018-11-15Merge branch 'frozen-string-lib-gitlab-even-more' into 'master'Stan Hu
Enable even more frozen string in lib/gitlab See merge request gitlab-org/gitlab-ce!22959
2018-11-14Avoid Gitaly RPC errors when fetching diff statsOswaldo Ferreira
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-06Stop Repository#fetch_remote from using Gitlab::ShellNick Thomas
This indirection doesn't provide any value, so remove it
2018-10-30Move Repository#wrapped_gitaly_errors into concernBob Van Landuyt
Having this in a concern allows us to reuse it for different single purpose classes that call out to git without going through the repository every time.
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-17[ci skip] Fix documentation of Gitlab::Git::Diff#filter_diff_options flagsAlejandro Rodríguez
2018-10-16Remove a dependency on gitlab-gollum-libNick Thomas
Inlining this code allows us to remove a dependency on gitlab_grit in gitlab-ce. We can't stop maintaining gitlab_grit yet, since gitaly-ruby still depends on this gem, but it moves us a step closer.
2018-10-16Remove a dependency on gitlab-gollum-libNick Thomas
Removing this dependency also allows us to remove a transitive dependency on gitlab_grit - which is the whole point of this exercise. I don't think we can EOL gitlab_grit until it's removed as a dependency from gitaly-ruby, but this at least gets it out of gitlab-ce.
2018-10-15Merge branch 'bvl-merge-base-multiple-revisions' into 'master'Douwe Maan
Allow getting the merge base of multiple revisions Closes #52573 See merge request gitlab-org/gitlab-ce!22295
2018-10-13Remove dependencies on LinguistZeger-Jan van de Weg
This saves about 128 MB of baseline RAM usage per Unicorn and Sidekiq process (!). Linguist wasn't detecting languages anymore from CE/EE since 9ae8b57467ac8b38f1fa9020a466d94a93cbb9dd. However, Linguist::BlobHelper was still being depended on by BlobLike and others. This removes the Linguist gem, given it isn't required anymore. EscapeUtils were pulled in as dependency, but given Banzai depends on it, it is now added explicitly. Previously, Linguist was used to detect the best ACE mode. Instead, we rely on ACE to guess the best mode based on the file extension.
2018-10-12Allow getting the merge base of multiple revisionsBob Van Landuyt
As we now support getting the merge base for multiple revisions in gitaly, we can provide this functionality in our API
2018-10-10Remove Git circuit breakerZeger-Jan van de Weg
Was introduced in the time that GitLab still used NFS, which is not required anymore in most cases. By removing this, the API it calls will return empty responses. This interface has to be removed in the next major release, expected to be 12.0.
2018-10-05Fix CE to EE merge (backport)Kamil Trzciński
2018-10-04Merge branch 'master' into 'feature/gb/pipeline-only-except-with-modified-paths'Kamil Trzciński
# Conflicts: # app/models/ci/pipeline.rb
2018-10-03Merge branch 'remove-rugged' into 'master'Douwe Maan
Remove Gitlab::Git::Repository#rugged See merge request gitlab-org/gitlab-ce!22039
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-02Merge branch 'osw-configurable-single-diff-file-limit' into 'master'Douwe Maan
Make single diff patch limit configurable Closes #48027 See merge request gitlab-org/gitlab-ce!21886
2018-10-02Treat nil git push revisons as a blank Git SHA valueGrzegorz Bizon
2018-10-01Make single diff patch limit configurableOswaldo Ferreira
- Creates a new column to hold the single patch limit value on application_settings - Allows updating this value through the application_settings API - Calculates single diff patch collapsing limit based on diff_max_patch_bytes column - Updates diff limit documentation - Adds documentation (with warning) as of how one can update this limit
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-28Calculate modified paths of a git push operationGrzegorz Bizon
2018-09-28Add specs for extracted git push classGrzegorz Bizon
2018-09-28Extract git push from merge request refresh serviceGrzegorz Bizon
2018-09-28Add a class that represents a git push operationGrzegorz Bizon
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-24Simplify by using Gitlab::SafeRequestStoreMichael Kozono
These are clear wins.
2018-09-19Use standalone diff stats RPC on every comparison viewOswaldo Ferreira
2018-09-18Merge branch '51564-fix-commit-email-usage' into 'master'Douwe Maan
Respect the user commit email in more places Closes #51564 See merge request gitlab-org/gitlab-ce!21773
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-17Remove Gitlab::Git::Repository#user_to_committerNick Thomas
2018-09-14Resolve "Add functionality to change what email address online actions ↵Nick Thomas
commit using"
2018-09-13Merge branch 'rubocop-code-reuse' into 'master'Robert Speicher
Add RuboCop cops to enforce code reusing rules See merge request gitlab-org/gitlab-ce!21391
2018-09-12Remove Rugged and shell code from Gitlab::GitAlejandro Rodríguez
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-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::Git::Repository#find_remote_root_refDouglas Barbosa Alexandre