aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/packfile/packfile.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2018-08-22 01:12:31 +0200
committerGitHub <noreply@github.com>2018-08-22 01:12:31 +0200
commitcdfa0bb8d987272b5729e565dbcc64f07963d77d (patch)
treeed946f1da370426f6c6965d8e713a001df9f8924 /plumbing/format/packfile/packfile.go
parentcc27d4a1789f75586694ff042fc9ab4cbc8b1385 (diff)
parentf84c6b194f2eced0c068b9cdc9264d30e6d2021b (diff)
downloadgo-git-cdfa0bb8d987272b5729e565dbcc64f07963d77d.tar.gz
Merge pull request #927 from jfontan/fix/iterate-objects-by-offset
plumbing/idxfile: object iterators returns entries in offset order
Diffstat (limited to 'plumbing/format/packfile/packfile.go')
-rw-r--r--plumbing/format/packfile/packfile.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/format/packfile/packfile.go b/plumbing/format/packfile/packfile.go
index 5feb781..18fcca7 100644
--- a/plumbing/format/packfile/packfile.go
+++ b/plumbing/format/packfile/packfile.go
@@ -394,7 +394,7 @@ func (p *Packfile) GetByType(typ plumbing.ObjectType) (storer.EncodedObjectIter,
plumbing.TreeObject,
plumbing.CommitObject,
plumbing.TagObject:
- entries, err := p.Entries()
+ entries, err := p.EntriesByOffset()
if err != nil {
return nil, err
}