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
path: root/lib
diff options
context:
space:
mode:
authorDan Dunckel <dldunckel@gmail.com>2016-09-20 19:07:52 +0300
committerDan Dunckel <dldunckel@gmail.com>2016-09-20 20:15:43 +0300
commit02d69091bc1d2ea4d14731b103efd5a5e2c9f040 (patch)
tree4111492d5b2dc24dc4b7cc25e0e6946cdaac6685 /lib
parent422c90251d9dbe42d5a8c852124398d1beae9176 (diff)
Add spec covering 'committer_hash'
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/git.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/git.rb b/lib/gitlab/git.rb
index 3ab99360206..3cd515e4a3a 100644
--- a/lib/gitlab/git.rb
+++ b/lib/gitlab/git.rb
@@ -19,6 +19,8 @@ module Gitlab
end
def committer_hash(email:, name:)
+ return if email.nil? || name.nil?
+
{
email: email,
name: name,