diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-29 23:06:10 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-29 23:06:10 +0200 |
commit | b73657f1aa7016bdd4c2cbd50bee4c20d5ab69ef (patch) | |
tree | 7f93f11b91b84e605a26f573d40791a4f6cb49d0 /tree.go | |
parent | e4246138cb9ffb819c052ba17a9fbdf915427291 (diff) | |
download | go-git-b73657f1aa7016bdd4c2cbd50bee4c20d5ab69ef.tar.gz |
core: Storage.Get, switch order of args
Diffstat (limited to 'tree.go')
-rw-r--r-- | tree.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -47,7 +47,7 @@ func (t *Tree) File(path string) (*File, error) { return nil, ErrFileNotFound } - obj, err := t.r.s.ObjectStorage().Get(e.Hash, core.BlobObject) + obj, err := t.r.s.ObjectStorage().Get(core.BlobObject, e.Hash) if err != nil { if err == core.ErrObjectNotFound { return nil, ErrFileNotFound // a git submodule @@ -87,7 +87,7 @@ func (t *Tree) dir(baseName string) (*Tree, error) { return nil, errDirNotFound } - obj, err := t.r.s.ObjectStorage().Get(entry.Hash, core.TreeObject) + obj, err := t.r.s.ObjectStorage().Get(core.TreeObject, entry.Hash) if err != nil { if err == core.ErrObjectNotFound { // git submodule return nil, errDirNotFound |