Skip to content
Snippets Groups Projects

Process up to 100 commit messages for references when pushing to a new default branch

Merged Fabio Papa requested to merge fapapa/gitlab-ce:patch-issue-#56683 into master
All threads resolved!
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
  • Commit messages are not processed for references to issues when
    creating the default branch on push. This was expected
    behavior (probably to avoid performance problems when first pushing a
    repository with thousands of commits). However, this is not an issue
    because we always limit the number of commits to process to 100
    regardless of whether we are creating the default branch or not.
@@ -287,8 +287,8 @@ def clears_extended_cache
context 'creating the default branch' do
let(:oldrev) { Gitlab::Git::BLANK_SHA }
it 'does not process commit messages' do
expect(ProcessCommitWorker).not_to receive(:perform_async)
it 'processes a limited number of commit messages' do
expect(ProcessCommitWorker).to receive(:perform_async).once
service.execute
end
Loading