{"thread":{"id":"12443","subject":"[PATCH v3 3/8] Ensure tail pointer gets setup correctly when we fetch HEAD only","startedAt":"2008-03-03T02:34:51Z","lastAt":"2008-03-03T02:34:51Z","messageCount":1,"participants":["Shawn O. Pearce"],"isPatch":true,"patchVersion":3,"patchTotal":8},"messages":[{"id":"70728","messageId":"20080303023451.GC9966@spearce.org","threadId":"12443","inReplyTo":null,"subject":"[PATCH v3 3/8] Ensure tail pointer gets setup correctly when we fetch HEAD only","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2008-03-03T02:34:51Z","receivedAt":"2008-03-03T02:34:51Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"If we ever decided to append onto the end of this list the tail\npointer must be looking at the right memory cell at the end of\nthe HEAD ref_map.\n\nSigned-off-by: Shawn O. Pearce <spearce@spearce.org>\n---\n builtin-fetch.c |    1 +\n 1 files changed, 1 insertions(+), 0 deletions(-)\n\ndiff --git a/builtin-fetch.c b/builtin-fetch.c\nindex 1348a0e..5bce20f 100644\n--- a/builtin-fetch.c\n+++ b/builtin-fetch.c\n@@ -157,6 +157,7 @@ static struct ref *get_ref_map(struct transport *transport,\n \t\t\tif (!ref_map)\n \t\t\t\tdie(\"Couldn't find remote ref HEAD\");\n \t\t\tref_map->merge = 1;\n+\t\t\ttail = &ref_map->next;\n \t\t}\n \t}\n \tref_remove_duplicates(ref_map);\n-- \n1.5.4.3.468.g36990\n\n"}]}