Sfoglia il codice sorgente

Use commit time instead of author time for push commits (#4037)

Unknwon 8 anni fa
parent
commit
6bfbed0616
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      models/update.go

+ 1 - 1
models/update.go

@@ -56,7 +56,7 @@ func CommitToPushCommit(commit *git.Commit) *PushCommit {
 		AuthorName:     commit.Author.Name,
 		CommitterEmail: commit.Committer.Email,
 		CommitterName:  commit.Committer.Name,
-		Timestamp:      commit.Author.When,
+		Timestamp:      commit.Committer.When,
 	}
 }