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 /http-push.c | |
parent | 24e8a3c946d158c977b67c346c21abc609c63209 (diff) | |
download | git-3d51e1b5b84bde24f9a19e3cee603f0b57f62001.tar.gz git-3d51e1b5b84bde24f9a19e3cee603f0b57f62001.tar.xz |
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 'http-push.c')
-rw-r--r-- | http-push.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/http-push.c b/http-push.c index b2b410df9..63ff218b3 100644 --- a/http-push.c +++ b/http-push.c @@ -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(); |