projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
172947e
)
process_tag: handle tag->tagged == NULL
author
Martin Koegler
<mkoegler@auto.tuwien.ac.at>
Mon, 18 Feb 2008 20:47:59 +0000
(21:47 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 19 Feb 2008 03:25:26 +0000
(19:25 -0800)
Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reachable.c
patch
|
blob
|
history
diff --git
a/reachable.c
b/reachable.c
index ddf39e556b964055419dfd92171f8277a7f7f0d9..11499a60c4202ba29b2dfc8bf1e6536343dfed4c 100644
(file)
--- a/
reachable.c
+++ b/
reachable.c
@@
-79,7
+79,8
@@
static void process_tag(struct tag *tag, struct object_array *p, const char *nam
if (parse_tag(tag) < 0)
die("bad tag object %s", sha1_to_hex(obj->sha1));
- add_object(tag->tagged, p, NULL, name);
+ if (tag->tagged)
+ add_object(tag->tagged, p, NULL, name);
}
static void walk_commit_list(struct rev_info *revs)