From: Shawn O. Pearce Date: Mon, 3 Mar 2008 02:34:51 +0000 (-0500) Subject: Ensure tail pointer gets setup correctly when we fetch HEAD only X-Git-Tag: v1.5.5-rc0~44^2~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5aaf7f2afb46621c371564b07225ff5e978fc4b5;p=git.git Ensure tail pointer gets setup correctly when we fetch HEAD only If we ever decided to append onto the end of this list the tail pointer must be looking at the right memory cell at the end of the HEAD ref_map. Signed-off-by: Shawn O. Pearce Signed-off-by: Junio C Hamano --- diff --git a/builtin-fetch.c b/builtin-fetch.c index 1348a0e95..5bce20f94 100644 --- a/builtin-fetch.c +++ b/builtin-fetch.c @@ -157,6 +157,7 @@ static struct ref *get_ref_map(struct transport *transport, if (!ref_map) die("Couldn't find remote ref HEAD"); ref_map->merge = 1; + tail = &ref_map->next; } } ref_remove_duplicates(ref_map);