diff options
author | Martin Koegler <mkoegler@auto.tuwien.ac.at> | 2008-02-18 08:31:56 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-17 23:51:12 -0800 |
commit | 3d51e1b5b84bde24f9a19e3cee603f0b57f62001 (patch) | |
tree | f143ea1f7bca0d42eb99b5ffcf67e9babf75c2ab /reachable.c | |
parent | 24e8a3c946d158c977b67c346c21abc609c63209 (diff) | |
download | git-3d51e1b5b84bde24f9a19e3cee603f0b57f62001.tar.gz |
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>
Diffstat (limited to 'reachable.c')
-rw-r--r-- | reachable.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/reachable.c b/reachable.c index 00f289f2f4..823e3242ec 100644 --- a/reachable.c +++ b/reachable.c @@ -215,6 +215,7 @@ void mark_reachable_objects(struct rev_info *revs, int mark_reflog) * Set up the revision walk - this will move all commits * from the pending list to the commit walking list. */ - prepare_revision_walk(revs); + if (prepare_revision_walk(revs)) + die("revision walk setup failed"); walk_commit_list(revs); } |