1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-19 08:48:37 +00:00

#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(),
}