summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c1ee901)
raw | patch | inline | side by side (parent: c1ee901)
author | Martin Koegler <mkoegler@auto.tuwien.ac.at> | |
Mon, 18 Feb 2008 20:47:55 +0000 (21:47 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 19 Feb 2008 03:25:22 +0000 (19:25 -0800) |
Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reachable.c | patch | blob | history |
diff --git a/reachable.c b/reachable.c
index 6383401e2dd6bef3251a105ac136312dfdcdeb3c..ddf39e556b964055419dfd92171f8277a7f7f0d9 100644 (file)
--- a/reachable.c
+++ b/reachable.c
@@ -150,7 +150,8 @@ static int add_one_reflog(const char *path, const unsigned char *sha1, int flag,
static void add_one_tree(const unsigned char *sha1, struct rev_info *revs)
{
struct tree *tree = lookup_tree(sha1);
- add_pending_object(revs, &tree->object, "");
+ if (tree)
+ add_pending_object(revs, &tree->object, "");
}
static void add_cache_tree(struct cache_tree *it, struct rev_info *revs)