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 <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Shawn O. Pearce committed
Mar 2, 2008 at 21:34 UTC
5aaf7f2afb46621c371564b07225ff5e978fc4b5
1 file changed
+1
builtin-fetch.c
+1
@@ -157,6 +157,7 @@ static struct ref *get_ref_map(struct transport *transport,
157
if (!ref_map)
158
die("Couldn't find remote ref HEAD");
159
ref_map->merge = 1;
160
+ tail = &ref_map->next;
161
}
162
}
163
ref_remove_duplicates(ref_map);