Fix error condition typo

This commit is contained in:
Scott J. Goldman 2012-11-29 17:34:41 -08:00
parent d5e44d8498
commit bdf3e6df83

View File

@ -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