diff --git a/splitter/state.go b/splitter/state.go index ed2eec8..d8f342e 100644 --- a/splitter/state.go +++ b/splitter/state.go @@ -477,7 +477,12 @@ func (s *state) copyCommit(rev *git.Commit, tree *git.Tree, parents []*git.Commi author.Email = "nobody@example.com" } - oid, err := s.repo.CreateCommit("", author, rev.Committer(), message, tree, parents...) + committer := rev.Committer() + if committer.Email == "" { + committer.Email = "nobody@example.com" + } + + oid, err := s.repo.CreateCommit("", author, committer, message, tree, parents...) if err != nil { return nil, err }