Commit bdf3e6df by Scott J. Goldman

Fix error condition typo

parent d5e44d84
...@@ -182,7 +182,7 @@ int git_commit_list_parse(git_revwalk *walk, git_commit_list_node *commit) ...@@ -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) if ((error = git_odb_read(&obj, walk->odb, &commit->oid)) < 0)
return error; 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"); giterr_set(GITERR_INVALID, "Object is no commit object");
error = -1; error = -1;
} else } else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment