Fix too-long subjects sent by git and nagios integrations

(imported from commit 9bf3af613b07fb7c72125eee0d08fd4a16dfa88a)
This commit is contained in:
Tim Abbott 2013-05-21 18:13:29 -04:00
parent be7903443c
commit d68f365ee5
2 changed files with 3 additions and 1 deletions

View file

@ -76,7 +76,7 @@ def git_commit_range(oldrev, newrev):
for ln in subprocess.check_output(log_cmd).splitlines():
email, subject = ln.split(None, 1)
if len(subject) > 60:
subject = subject[:58].rstrip() + '...'
subject = subject[:57].rstrip() + '...'
commits += '!gravatar(%s) %s\n' % (email, subject)
return commits