summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Dunckel <dldunckel@gmail.com>2016-09-20 09:07:52 -0700
committerDan Dunckel <dldunckel@gmail.com>2016-09-20 10:15:43 -0700
commit02d69091bc1d2ea4d14731b103efd5a5e2c9f040 (patch)
tree4111492d5b2dc24dc4b7cc25e0e6946cdaac6685 /lib
parent422c90251d9dbe42d5a8c852124398d1beae9176 (diff)
downloadgitlab-ce-02d69091bc1d2ea4d14731b103efd5a5e2c9f040.tar.gz
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,