Permalink
Browse files

Generate a subject when there are no commits.

  • Loading branch information...
1 parent 6fb3918 commit 3c9579bfa3ec9bbc369170fba9dee3c0e8b53114 @benburkert benburkert committed Jan 7, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 services/email.rb
View
@@ -151,7 +151,11 @@ def repo_url
end
def mail_subject
- "[#{name_with_owner}] #{first_commit_sha}: #{first_commit_title}"
+ if first_commit
+ "[#{name_with_owner}] #{first_commit_sha}: #{first_commit_title}"
+ else
+ "[#{name_with_owner}]"
+ end
end
def secret_header

0 comments on commit 3c9579b

Please sign in to comment.