clone: factor out HEAD update code
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Mon, 16 Jan 2012 09:46:10 +0000 (16:46 +0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Jan 2012 00:26:25 +0000 (16:26 -0800)
commitf034d3549fa34e65ca09ee9ce721dcf43faefd1d
tree36d630680fc2497f48e0145551f8a6fc1416e207
parentc39852c18dc7efa794bbe20b10ecfe7038409727
clone: factor out HEAD update code

While at it, update the comment at "if (remote_head)"

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clone.c