From bdf3e6df8313e44890b137eae28ee2e5d63833b8 Mon Sep 17 00:00:00 2001 From: "Scott J. Goldman" Date: Thu, 29 Nov 2012 17:34:41 -0800 Subject: [PATCH] Fix error condition typo --- src/commit_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commit_list.c b/src/commit_list.c index 734e1051f..d79934a2f 100644 --- a/src/commit_list.c +++ b/src/commit_list.c @@ -182,7 +182,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->raw.type == GIT_OBJ_COMMIT) { + if (obj->raw.type != GIT_OBJ_COMMIT) { giterr_set(GITERR_INVALID, "Object is no commit object"); error = -1; } else