Permalink
Browse files

updated info header in email

  • Loading branch information...
1 parent a594b9a commit 731afe65f688fd6b87f916198af8d5cb55222d69 zoltan committed Nov 3, 2008
Showing with 5 additions and 5 deletions.
  1. +5 −5 git_commit_notifier/lib/diff_to_html.rb
@@ -251,12 +251,12 @@ def diff_between_revisions(rev1, rev2, repo, branch)
commit, author, email, date, message = extract_commit_info_from_git_show_output(raw_diff)
- title = "<div class=\"title\"><strong>Repository:</strong> #{repo}\n<br />"
- title += "<strong>Branch:</strong> #{branch}\n<br />"
- title += "<strong>Commit</strong> #{commit}\n<br />"
- title += "<strong>Author:</strong> #{CGI.escapeHTML(author)} &lt;#{email}&gt;\n<br />"
+ title = "<div class=\"title\">"
+ title += "<strong>Message:</strong> #{message_array_as_html message}<br />\n"
+ title += "<strong>Commit</strong> #{commit}<br />\n"
+ title += "<strong>Branch:</strong> #{branch}\n<br />" unless branch =~ /\/head/
title += "<strong>Date:</strong> #{CGI.escapeHTML date}\n<br />"
- title += "<strong>Message:</strong> #{message_array_as_html message}</div>"
+ title += "<strong>Author:</strong> #{CGI.escapeHTML(author)} &lt;#{email}&gt;\n</div>"
text = "#{raw_diff}\n\n\n"

0 comments on commit 731afe6

Please sign in to comment.