aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Sugarbroad <jpsugar@google.com>2017-07-12 18:05:57 -0700
committerJP Sugarbroad <jpsugar@google.com>2017-07-12 18:08:02 -0700
commit51005a2762c9c87914ee0fe2e152402482ce6bd7 (patch)
tree4746f0d9dac33a2a253fc66a891609c4786f338a
parentdf946d7d1c4551b3c8e87183012e3a48efbbfe76 (diff)
downloadgo-git-51005a2762c9c87914ee0fe2e152402482ce6bd7.tar.gz
git: remove ErrObjectNotFound in favor of plumbing.ErrObjectNotFound
-rw-r--r--repository.go5
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
}