diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2019-02-05 12:23:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-05 12:23:55 +0100 |
commit | 00629a1f26e668d0da503455e2a61d7107da3160 (patch) | |
tree | da0f560c7bc283572ce8ab326c0ffc411d72a1ff /plumbing/format/packfile/packfile.go | |
parent | d1b5bceb228e528bf085a3d4e2c35218e692da01 (diff) | |
parent | 121898c6d683311330b58b8a8f8e5ff64575706c (diff) | |
download | go-git-00629a1f26e668d0da503455e2a61d7107da3160.tar.gz |
Merge pull request #1060 from keybase/strib/gh-KBFS-3828-packfile-object-size
packfile: get object size correctly for delta objects
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) { |