diff --git a/audit/repo.go b/audit/repo.go index c8b27776..aec78f5f 100644 --- a/audit/repo.go +++ b/audit/repo.go @@ -104,11 +104,12 @@ func (repo *Repo) AuditUncommitted() error { if err != nil { return err } + // Staged change so the commit details do not yet exist. Insert empty defaults. c.Hash = plumbing.Hash{} - c.Message = "STAGED CHANGES" + c.Message = "***STAGED CHANGES***" c.Author.Name = "" c.Author.Email = "" - c.Author.When = time.Now() + c.Author.When = time.Unix(0, 0).UTC() prevTree, err := c.Tree() if err != nil {