summaryrefslogtreecommitdiffstats
path: root/modules/git/commit_reader.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/commit_reader.go')
-rw-r--r--modules/git/commit_reader.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/git/commit_reader.go b/modules/git/commit_reader.go
index a4d15b6bad..3c1f6f5ffd 100644
--- a/modules/git/commit_reader.go
+++ b/modules/git/commit_reader.go
@@ -17,7 +17,9 @@ import (
// If used as part of a cat-file --batch stream you need to limit the reader to the correct size
func CommitFromReader(gitRepo *Repository, sha SHA1, reader io.Reader) (*Commit, error) {
commit := &Commit{
- ID: sha,
+ ID: sha,
+ Author: &Signature{},
+ Committer: &Signature{},
}
payloadSB := new(strings.Builder)