Skip to contentSkip to conversation

Ensure tail pointer gets setup correctly when we fetch HEAD only

PATCH New Shawn O. Pearce 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v3 3/8 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.

---
 builtin-fetch.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
builtin-fetch.c +1 -0
index 1348a0e..5bce20f 100644
@@ -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);
Signature · 1 line
1.5.4.3.468.g36990