From: Eric Sunshine Date: Wed, 27 Nov 2013 01:36:42 GMT Subject: Re: [PATCH v3 27/28] clone: use git protocol for cloning shallow repo locally Message-ID: In-Reply-To: <1385351754-9954-28-git-send-email-pclouds@gmail.com> On Sun, Nov 24, 2013 at 10:55 PM, Nguyễn Thái Ngọc Duy wrote: > clone_local() does not handle $SRC/shallow. It could be made so, but > it's simpler to use fetch-pack/upload-pack instead. > > This used by be caught by the check in upload-pack, which is triggered s/used by/used to/ > by transport_get_remote_refs(), even in local clone case. The check is > now gone and check_everything_connected() should catch the result > incomplete repo. But check_everything_connected() will soon be skipped > in local clone case, opening a door to corrupt repo. This patch should > close that door. > > Signed-off-by: Nguyễn Thái Ngọc Duy