Skip to content

Commit

Permalink
Ensure tail pointer gets setup correctly when we fetch HEAD only
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shawn O. Pearce authored and Junio C Hamano committed Mar 3, 2008
1 parent 7f98428 commit 5aaf7f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builtin-fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5aaf7f2

Please sign in to comment.