forked from src-d/go-git
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plumbing: object, return ErrFileNotFound in FindEntry. Fixes src-d#883
FindEntry will return ErrDirNotFound if the directory doesn't exist. But it doesn't return the corresponding error if the file itself is missing. This adds the logic to return ErrFileNotFound, so users can programmatically check for this condition. Signed-off-by: James Ravn <james@r-vn.org>
- Loading branch information
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters