diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-07-13 01:39:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-13 01:39:35 -0700 |
commit | 3f4a03039e5f772c9e3073026b6703a43d491bcd (patch) | |
tree | 4746f0d9dac33a2a253fc66a891609c4786f338a /repository.go | |
parent | df946d7d1c4551b3c8e87183012e3a48efbbfe76 (diff) | |
parent | 51005a2762c9c87914ee0fe2e152402482ce6bd7 (diff) | |
download | go-git-3f4a03039e5f772c9e3073026b6703a43d491bcd.tar.gz |
Merge pull request #477 from taralx/patch-2
git: remove ErrObjectNotFound in favor of plumbing.ErrObjectNotFound
Diffstat (limited to 'repository.go')
-rw-r--r-- | repository.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/repository.go b/repository.go index a60f3ef..17f0dff 100644 --- a/repository.go +++ b/repository.go @@ -22,7 +22,6 @@ import ( ) var ( - ErrObjectNotFound = errors.New("object not found") ErrInvalidReference = errors.New("invalid reference, should be a tag or a branch") ErrRepositoryNotExists = errors.New("repository not exists") ErrRepositoryAlreadyExists = errors.New("repository already exists") @@ -804,10 +803,6 @@ func (r *Repository) TagObjects() (*object.TagIter, error) { func (r *Repository) Object(t plumbing.ObjectType, h plumbing.Hash) (object.Object, error) { obj, err := r.Storer.EncodedObject(t, h) if err != nil { - if err == plumbing.ErrObjectNotFound { - return nil, ErrObjectNotFound - } - return nil, err } |