summaryrefslogtreecommitdiff
path: root/src/revparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/revparse.c')
-rw-r--r--src/revparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/revparse.c b/src/revparse.c
index 3855c29f..17266b94 100644
--- a/src/revparse.c
+++ b/src/revparse.c
@@ -493,7 +493,7 @@ static int walk_and_search(git_object **out, git_revwalk *walk, regex_t *regex)
git_object_free(obj);
}
- if (error < 0 && error == GIT_REVWALKOVER)
+ if (error < 0 && error == GIT_ITEROVER)
error = GIT_ENOTFOUND;
return error;