summaryrefslogtreecommitdiff
path: root/app/workers
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2017-05-23 12:33:49 -0300
committerFelipe Artur <felipefac@gmail.com>2017-05-25 12:13:32 -0300
commit005496354457cefba4f54e2d19f53888b2182727 (patch)
tree4b363f420d04cc09d7bee7657f7e1eefd5aa4e6b /app/workers
parente44016b90ad900836b2cbc83ebb9f58c39b3576a (diff)
downloadgitlab-ce-005496354457cefba4f54e2d19f53888b2182727.tar.gz
Remove unecessary commit pattern check
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/process_commit_worker.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/workers/process_commit_worker.rb b/app/workers/process_commit_worker.rb
index 8b192aa74c6..fe6a49976e0 100644
--- a/app/workers/process_commit_worker.rb
+++ b/app/workers/process_commit_worker.rb
@@ -25,8 +25,6 @@ class ProcessCommitWorker
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)
@@ -80,7 +78,7 @@ class ProcessCommitWorker
private
- # Avoid to re-process commits messages that already exists in the upstream
+ # Avoid reprocessing commits that already exist in the upstream
# when project is forked. This will also prevent duplicated system notes.
def commit_exists_in_upstream?(project, commit_hash)
return false unless project.forked?