From: Jeff King Date: Wed, 17 Jun 2015 17:00:01 GMT Subject: Re: [PATCH v2] fetch-pack: check for shallow if depth given Message-ID: <20150617170001.GC22689@peff.net> In-Reply-To: <1434541694-12748-1-git-send-email-adgar@google.com> On Wed, Jun 17, 2015 at 07:48:14AM -0400, Mike Edgar wrote: > When a repository is first fetched as a shallow clone, either by > git-clone or by fetching into an empty repo, the server's capabilities > are not currently consulted. The client will send shallow requests even > if the server does not understand them, and the resulting error may be > unhelpful to the user. This change pre-emptively checks so we can exit > with a helpful error if necessary. > > Signed-off-by: Mike Edgar Looks good to me. -Peff