summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/revparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/revparse.c b/src/revparse.c
index dd3886e2d..5050bdf1b 100644
--- a/src/revparse.c
+++ b/src/revparse.c
@@ -485,7 +485,7 @@ static int handle_caret_syntax(git_object **out, git_repository *repo, git_objec
}
if (git_commit_parent(&commit, commit, n-1) < 0) {
- return GIT_ERROR;
+ return GIT_ENOTFOUND;
}
*out = (git_object*)commit;