git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 3/8] Ensure tail pointer gets setup correctly when we fetch HEAD only
@ 2008-03-03  2:34 Shawn O. Pearce
  0 siblings, 0 replies; only message in thread
From: Shawn O. Pearce @ 2008-03-03  2:34 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

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>
---
 builtin-fetch.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/builtin-fetch.c b/builtin-fetch.c
index 1348a0e..5bce20f 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);
-- 
1.5.4.3.468.g36990


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-03  2:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-03  2:34 [PATCH v3 3/8] Ensure tail pointer gets setup correctly when we fetch HEAD only Shawn O. Pearce

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).