diff options
author | Hannes Rosenögger <123haynes@gmail.com> | 2015-03-09 14:52:45 +0300 |
---|---|---|
committer | Hannes Rosenögger <123haynes@gmail.com> | 2015-03-09 14:52:45 +0300 |
commit | 224e104d8dc79e081fd897a1e52799dc1a0082bb (patch) | |
tree | b891936184fd4fab1474b454ffd4b29c7759a907 /spec | |
parent | 6b214a5d87e9a7a57b3da1b9605626e516f65d1a (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.rb | 9 |
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 |