Code

clone: --branch=<branch> always means refs/heads/<branch>
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Mon, 16 Jan 2012 09:46:13 +0000 (16:46 +0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Jan 2012 00:26:26 +0000 (16:26 -0800)
commit9e5850460164f49dc9ae47569838084f5572846d
treed9145f98548015227049becac58eb2a07ce05ca0
parent6f48d39fa4d3e364c81d3cbbbd656c804b9ec873
clone: --branch=<branch> always means refs/heads/<branch>

It does not make sense to look outside refs/heads for HEAD's target
(src_ref_prefix can be set to "refs/" if --mirror is used) because ref
code only allows symref in form refs/heads/...

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