From: Max Kirillov Date: Sun, 30 Nov 2014 08:24:58 +0000 (+0700) Subject: checkout: do not fail if target is an empty directory X-Git-Tag: v2.5.0-rc0~143^2~8 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/ee4fb8435e2186323c6a91d26d1572da12b5d033?ds=sidebyside;hp=ee4fb8435e2186323c6a91d26d1572da12b5d033 checkout: do not fail if target is an empty directory Non-recursive checkout creates empty directpries in place of submodules. If then I try to "checkout --to" submodules there, it refuses to do so, because directory already exists. Fix by allowing checking out to empty directory. Add test and modify the existing one so that it uses non-empty directory. Signed-off-by: Max Kirillov Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano ---