ref-filter: die on parse_commit errors
[gitweb.git] / ref-filter.c
index 631978a4f9f41146d4a5446feb5005c4e415dc4d..5cb49b7c242dcfbe9eb8dc4c8b75057b99eaff07 100644 (file)
@@ -1523,9 +1523,7 @@ static enum contains_result contains_test(struct commit *candidate,
                return CONTAINS_YES;
        }
 
-       if (parse_commit(candidate) < 0)
-               return CONTAINS_NO;
-
+       parse_commit_or_die(candidate);
        return CONTAINS_UNKNOWN;
 }