aboutsummaryrefslogtreecommitdiff
path: root/object/commit_parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'object/commit_parse.go')
-rw-r--r--object/commit_parse.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/object/commit_parse.go b/object/commit_parse.go
index 2d207add..ae1b2559 100644
--- a/object/commit_parse.go
+++ b/object/commit_parse.go
@@ -42,13 +42,13 @@ func ParseCommit(body []byte, algo objectid.Algorithm) (*Commit, error) {
}
c.Parents = append(c.Parents, id)
case "author":
- idt, err := ParseIdent(value)
+ idt, err := ParseSignature(value)
if err != nil {
return nil, fmt.Errorf("object: commit: author: %w", err)
}
c.Author = *idt
case "committer":
- idt, err := ParseIdent(value)
+ idt, err := ParseSignature(value)
if err != nil {
return nil, fmt.Errorf("object: commit: committer: %w", err)
}