#3505 use user’s info for committer and author

This commit is contained in:
Unknwon 2016-08-27 13:37:55 -07:00
parent 13c106af77
commit c30b856d14
10 changed files with 29 additions and 20 deletions

View file

@ -308,7 +308,7 @@ func (u *User) GetFollowing(page int) ([]*User, error) {
// NewGitSig generates and returns the signature of given user.
func (u *User) NewGitSig() *git.Signature {
return &git.Signature{
Name: u.Name,
Name: u.DisplayName(),
Email: u.Email,
When: time.Now(),
}