use short hash

This commit is contained in:
Andrew Davidson 2014-04-18 10:08:31 -07:00
parent 2a90a2c8a8
commit 6e3814a0cb

View file

@ -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
}
}