diff options
Diffstat (limited to 'object/commit')
| -rw-r--r-- | object/commit/serialize.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/object/commit/serialize.go b/object/commit/serialize.go index 721cacf6..3f141550 100644 --- a/object/commit/serialize.go +++ b/object/commit/serialize.go @@ -13,7 +13,7 @@ import ( func (commit *Commit) SerializeWithoutHeader() ([]byte, error) { var buf bytes.Buffer - if commit.Tree.Size() == 0 { + if commit.Tree.Algorithm().Size() == 0 { return nil, errors.New("object: commit: missing tree id") } |
