Re: [PATCH v3 27/28] clone: use git protocol for cloning shallow repo locally
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Nov 27, 2013, 01:36 UTC
- Message-ID
- <CAPig+cS1rbX4DZSv-V5_fOY8bfT5jUvXZCtAWpSfhcHUNhV8LQ@mail.gmail.com>
- 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 <pclouds@gmail.com> 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/
Show 7 quoted lines
> 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 <pclouds@gmail.com>