summaryrefslogtreecommitdiff
path: root/upload-pack.c
diff options
context:
space:
mode:
authorMartin Koegler <mkoegler@auto.tuwien.ac.at>2008-02-18 07:31:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-02-18 07:51:12 (GMT)
commit3d51e1b5b84bde24f9a19e3cee603f0b57f62001 (patch)
treef143ea1f7bca0d42eb99b5ffcf67e9babf75c2ab /upload-pack.c
parent24e8a3c946d158c977b67c346c21abc609c63209 (diff)
downloadgit-3d51e1b5b84bde24f9a19e3cee603f0b57f62001.zip
git-3d51e1b5b84bde24f9a19e3cee603f0b57f62001.tar.gz
git-3d51e1b5b84bde24f9a19e3cee603f0b57f62001.tar.bz2
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 'upload-pack.c')
-rw-r--r--upload-pack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/upload-pack.c b/upload-pack.c
index eaea999..de14785 100644
--- a/upload-pack.c
+++ b/upload-pack.c
@@ -129,7 +129,8 @@ static int do_rev_list(int fd, void *create_full_pack)
}
setup_revisions(0, NULL, &revs, NULL);
}
- prepare_revision_walk(&revs);
+ if (prepare_revision_walk(&revs))
+ die("revision walk setup failed");
mark_edges_uninteresting(revs.commits, &revs, show_edge);
traverse_commit_list(&revs, show_commit, show_object);
return 0;