OSDN Git Service

checkout: fix ambiguity check in subdir
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Wed, 7 Sep 2016 11:19:41 +0000 (18:19 +0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Sep 2016 15:44:41 +0000 (08:44 -0700)
commitb829b9439adc12fa4fb33338694e7f1ad40254c1
treeb7718c1f6996471f382dd5d8b02c95ab303e37bb
parent19e5656345cb308ab689932d64af0858a3a92400
checkout: fix ambiguity check in subdir

The two functions in parse_branchname_arg(), verify_non_filename and
check_filename, need correct prefix in order to reconstruct the paths
and check for their existence. With NULL prefix, they just check paths
at top dir instead.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c
t/t2010-checkout-ambiguous.sh
t/t2024-checkout-dwim.sh