summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/repository.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repository.c b/src/repository.c
index 9729d3197..27553ad0a 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -2272,7 +2272,7 @@ int git_repository_item_path(git_buf *out, git_repository *repo, git_repository_
if (parent == NULL) {
giterr_set(GITERR_INVALID, "path cannot exist in repository");
- return -1;
+ return GIT_ENOTFOUND;
}
if (git_buf_sets(out, parent) < 0)