diff options
author | Jeremy Stribling <strib@alum.mit.edu> | 2019-01-31 17:02:22 -0800 |
---|---|---|
committer | Jeremy Stribling <strib@alum.mit.edu> | 2019-01-31 17:38:04 -0800 |
commit | 121898c6d683311330b58b8a8f8e5ff64575706c (patch) | |
tree | c94d3c0accbc8d0a05a9d550a068162a525970d7 /plumbing/format/packfile/packfile.go | |
parent | a1f6ef44dfed1253ef7f3bc049f66b15f8fc2ab2 (diff) | |
download | go-git-121898c6d683311330b58b8a8f8e5ff64575706c.tar.gz |
packfile: get object size correctly for delta objects
Signed-off-by: Jeremy Stribling <strib@alum.mit.edu>
Diffstat (limited to 'plumbing/format/packfile/packfile.go')
-rw-r--r-- | plumbing/format/packfile/packfile.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/format/packfile/packfile.go b/plumbing/format/packfile/packfile.go index 1e7ef26..69b6e85 100644 --- a/plumbing/format/packfile/packfile.go +++ b/plumbing/format/packfile/packfile.go @@ -107,7 +107,7 @@ func (p *Packfile) GetSizeByOffset(o int64) (size int64, err error) { if err != nil { return 0, err } - return h.Length, nil + return p.getObjectSize(h) } func (p *Packfile) objectHeaderAtOffset(offset int64) (*ObjectHeader, error) { |