summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/git/commit_reader.go4
-rw-r--r--modules/git/tag.go1
2 files changed, 4 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)
diff --git a/modules/git/tag.go b/modules/git/tag.go
index 0323cc42ed..23f09e25b6 100644
--- a/modules/git/tag.go
+++ b/modules/git/tag.go
@@ -35,6 +35,7 @@ func (tag *Tag) Commit() (*Commit, error) {
// \n\n separate headers from message
func parseTagData(data []byte) (*Tag, error) {
tag := new(Tag)
+ tag.Tagger = &Signature{}
// we now have the contents of the commit object. Let's investigate...
nextline := 0
l: