clone: fix ref selection in --single-branch --branch=xxx
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 22 Jun 2012 09:35:47 +0000 (16:35 +0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 Jun 2012 21:16:34 +0000 (14:16 -0700)
commit0ec4b1650ccac48513f8cfb00d0778ba1d3e8fca
tree6eb9e150867cb774caf7aa4399ac91e49ddd4967
parent785ee4960c3d334cbc2b17ab74d2cebdf1b4db64
clone: fix ref selection in --single-branch --branch=xxx

 - do not fetch HEAD
 - do not also fetch refs following "xxx"

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
t/t5500-fetch-pack.sh