summaryrefslogtreecommitdiff
path: root/src/commit_list.c
diff options
context:
space:
mode:
authorScott J. Goldman <scottjg@github.com>2012-11-29 17:34:41 -0800
committerScott J. Goldman <scottjg@github.com>2012-11-29 17:34:41 -0800
commitbdf3e6df8313e44890b137eae28ee2e5d63833b8 (patch)
tree9d655165906ff854ed55d7ca84d1925f189dbc1c /src/commit_list.c
parentd5e44d84983ba199a62ec67f823312584339fae3 (diff)
downloadlibgit2-bdf3e6df8313e44890b137eae28ee2e5d63833b8.tar.gz
Fix error condition typo
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 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