mirror of
https://github.com/splitsh/lite.git
synced 2024-05-17 05:36:37 +02:00
fallback value for committer email
This commit is contained in:
parent
faf40091fa
commit
9b1b817de9
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue