This repository was archived by the owner on Sep 11, 2020. It is now read-only.
This repository was archived by the owner on Sep 11, 2020. It is now read-only.
object.Tree.FindEntry should return ErrFileNotFound rather than errEntryNotFound #883
Closed
Description
If directory is not found, it will return the public error ErrDirNotFound
. For a missing file, it returns errEntryNotFound
:
go-git/plumbing/object/tree.go
Line 178 in f019589
Since the error is private there isn't a way to programmatically check for that condition.