Skip to content

Commit

Permalink
fix: respect author
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Jun 27, 2021
1 parent 9a0cd3a commit f017071
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/convert/git_commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ func ToCommit(repo *models.Repository, commit *git.Commit, userCache map[string]
URL: repo.APIURL() + "/git/commits/" + commit.ID.String(),
Author: &api.CommitUser{
Identity: api.Identity{
Name: commit.Committer.Name,
Email: commit.Committer.Email,
Name: commit.Author.Name,
Email: commit.Author.Email,
},
Date: commit.Author.When.Format(time.RFC3339),
},
Expand Down

0 comments on commit f017071

Please sign in to comment.