summaryrefslogtreecommitdiff
path: root/app/workers
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/create_gpg_signature_worker.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/workers/create_gpg_signature_worker.rb b/app/workers/create_gpg_signature_worker.rb
index 91833941070..a1aeeb7c4fc 100644
--- a/app/workers/create_gpg_signature_worker.rb
+++ b/app/workers/create_gpg_signature_worker.rb
@@ -4,6 +4,10 @@ class CreateGpgSignatureWorker
include ApplicationWorker
def perform(commit_shas, project_id)
+ # Older versions of GitPushService may push a single commit ID on the stack.
+ # We need this to be backwards compatible.
+ commit_shas = Array(commit_shas)
+
return if commit_shas.empty?
project = Project.find_by(id: project_id)