summaryrefslogtreecommitdiff
path: root/builtin-fetch.c
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2008-03-03 02:34:51 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-03-03 08:05:45 (GMT)
commit5aaf7f2afb46621c371564b07225ff5e978fc4b5 (patch)
tree7ac177950f718cb04b19a06b03305a2318601a28 /builtin-fetch.c
parent7f98428d4beb24b564acbbfa779391467aab6f03 (diff)
downloadgit-5aaf7f2afb46621c371564b07225ff5e978fc4b5.zip
git-5aaf7f2afb46621c371564b07225ff5e978fc4b5.tar.gz
git-5aaf7f2afb46621c371564b07225ff5e978fc4b5.tar.bz2
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>
Diffstat (limited to 'builtin-fetch.c')
-rw-r--r--builtin-fetch.c1
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);