From 6e3814a0cb68317483cf43fe459339f985a06388 Mon Sep 17 00:00:00 2001 From: Andrew Davidson Date: Fri, 18 Apr 2014 10:08:31 -0700 Subject: [PATCH] use short hash --- pkg/plugin/notify/email.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/plugin/notify/email.go b/pkg/plugin/notify/email.go index 5f80d746e..3f8f41f18 100644 --- a/pkg/plugin/notify/email.go +++ b/pkg/plugin/notify/email.go @@ -26,7 +26,7 @@ func (e *Email) Send(context *Context) error { func (e *Email) sendFailure(context *Context) error { // loop through and email recipients for _, email := range e.Recipients { - if err := mail.SendFailure(context.Repo.Name, context.Commit.Hash, email, context); err != nil { + if err := mail.SendFailure(context.Repo.Name, context.Commit.HashShort(), email, context); err != nil { return err } } @@ -38,7 +38,7 @@ func (e *Email) sendFailure(context *Context) error { func (e *Email) sendSuccess(context *Context) error { // loop through and email recipients for _, email := range e.Recipients { - if err := mail.SendSuccess(context.Repo.Name, context.Commit.Hash, email, context); err != nil { + if err := mail.SendSuccess(context.Repo.Name, context.Commit.HashShort(), email, context); err != nil { return err } }