diff options
author | Unknwon <u@gogs.io> | 2016-08-27 13:37:55 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-27 13:37:55 -0700 |
commit | c30b856d147dd895507c8f2334a11ed4baab6c18 (patch) | |
tree | b0212b58f1026ba581f3f9c0ef1a366a5c4706df /models/user.go | |
parent | 13c106af7764a0b4757348ab4c82dbf9154ee11c (diff) | |
download | gitea-c30b856d147dd895507c8f2334a11ed4baab6c18.tar.gz gitea-c30b856d147dd895507c8f2334a11ed4baab6c18.zip |
#3505 use user’s info for committer and author
Diffstat (limited to 'models/user.go')
-rw-r--r-- | models/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go index 7ec5e12b2f..fa6bbacb7c 100644 --- a/models/user.go +++ b/models/user.go @@ -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(), } |