summaryrefslogtreecommitdiff
path: root/src/commit_list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/commit_list.c')
-rw-r--r--src/commit_list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commit_list.c b/src/commit_list.c
index b4313eed2..078a87bc0 100644
--- a/src/commit_list.c
+++ b/src/commit_list.c
@@ -192,7 +192,7 @@ int git_commit_list_parse(git_revwalk *walk, git_commit_list_node *commit)
if ((error = git_odb_read(&obj, walk->odb, &commit->oid)) < 0)
return error;
- if (obj->cached.type != GIT_OBJ_COMMIT) {
+ if (obj->cached.type != GIT_OBJECT_COMMIT) {
giterr_set(GITERR_INVALID, "object is no commit object");
error = -1;
} else