check return code of prepare_revision_walk
A failure in prepare_revision_walk can be caused by a not parseable object. Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
24e8a3c946
commit
3d51e1b5b8
@ -2383,7 +2383,8 @@ int main(int argc, char **argv)
|
||||
|
||||
/* Generate a list of objects that need to be pushed */
|
||||
pushing = 0;
|
||||
prepare_revision_walk(&revs);
|
||||
if (prepare_revision_walk(&revs))
|
||||
die("revision walk setup failed");
|
||||
mark_edges_uninteresting(revs.commits);
|
||||
objects_to_send = get_delta(&revs, ref_lock);
|
||||
finish_all_active_slots();
|
||||
|
Reference in New Issue
Block a user