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
diff options
context:
space:
mode:
authorJames Edwards-Jones <jedwardsjones@gitlab.com>2017-04-22 05:26:58 +0300
committerJames Edwards-Jones <jedwardsjones@gitlab.com>2017-05-04 22:03:46 +0300
commit020295fffc2329b7852c2739082986fd6b569d9e (patch)
treeff5c16475b3e30a6003d8d39f03484fb937e9e6f /app/workers
parent8e156d662b7895ce8777f34882422c3714cc65c7 (diff)
Use regex to skip unnecessary reference processing in ProcessCommitWorker
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/process_commit_worker.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/workers/process_commit_worker.rb b/app/workers/process_commit_worker.rb
index 2f7967cf531..d6ed0e253ad 100644
--- a/app/workers/process_commit_worker.rb
+++ b/app/workers/process_commit_worker.rb
@@ -23,6 +23,9 @@ class ProcessCommitWorker
return unless user
commit = build_commit(project, commit_hash)
+
+ return unless commit.matches_cross_reference_regex?
+
author = commit.author || user
process_commit_message(project, commit, user, author, default)