summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-07-12 10:52:19 +0200
committernulltoken <emeric.fermas@gmail.com>2012-07-12 22:29:55 +0200
commitdc1f4b32d30ce715a58acdd249f15d08ce844233 (patch)
treed75322a8f412bafe5bb631af392e7567e733e9d3 /src
parent1c3edb307842dede8d20cecc734359b68c67fd65 (diff)
downloadlibgit2-dc1f4b32d30ce715a58acdd249f15d08ce844233.tar.gz
tree: unfound tree entry returns GIT_ENOTFOUND
Diffstat (limited to 'src')
-rw-r--r--src/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tree.c b/src/tree.c
index 4d22f2f63..31a581cdb 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -730,7 +730,7 @@ int git_tree_entry_bypath(
if (!git_tree_entry__is_tree(entry)) {
giterr_set(GITERR_TREE,
"The path '%s' does not exist in the given tree", path);
- return -1;
+ return GIT_ENOTFOUND;
}
/* If there's only a slash left in the path, we