#3505 use user’s info for committer and author
This commit is contained in:
parent
13c106af77
commit
c30b856d14
10 changed files with 29 additions and 20 deletions
|
@ -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(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue