Code

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

Read HEAD from disk instead of relying on local variable
our_head_points_at, so that if earlier code fails to make HEAD
properly, it'll be detected.

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