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
path: root/spec
diff options
context:
space:
mode:
authorHannes Rosenögger <123haynes@gmail.com>2015-03-09 14:52:45 +0300
committerHannes Rosenögger <123haynes@gmail.com>2015-03-09 14:52:45 +0300
commit224e104d8dc79e081fd897a1e52799dc1a0082bb (patch)
treeb891936184fd4fab1474b454ffd4b29c7759a907 /spec
parent6b214a5d87e9a7a57b3da1b9605626e516f65d1a (diff)
fix mass SQL statements on initial push
This commit disables process_commit_messages() for the initial push to the default branch. This fixes the mass SQL statements (~500000) that were executed during the initial push of the linux kernel for example.
Diffstat (limited to 'spec')
-rw-r--r--spec/services/git_push_service_spec.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/spec/services/git_push_service_spec.rb b/spec/services/git_push_service_spec.rb
index e264072b573..1b1e3ca5f8b 100644
--- a/spec/services/git_push_service_spec.rb
+++ b/spec/services/git_push_service_spec.rb
@@ -197,15 +197,6 @@ describe GitPushService do
service.execute(project, user, @blankrev, @newrev, 'refs/heads/other')
end
-
- it "finds references in the first push to a default branch" do
- allow(project.repository).to receive(:commits_between).with(@blankrev, @newrev).and_return([])
- allow(project.repository).to receive(:commits).with(@newrev).and_return([commit])
-
- expect(Note).to receive(:create_cross_reference_note).with(issue, commit, commit_author, project)
-
- service.execute(project, user, @blankrev, @newrev, 'refs/heads/master')
- end
end
describe "closing issues from pushed commits" do