[PATCH v2] fetch-pack: check for shallow if depth given

2015-06-17 Thread Mike Edgar
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 use

Re: [PATCH v2] fetch-pack: check for shallow if depth given

2015-06-17 Thread Jeff King
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

[PATCH v2] fetch-pack: check for shallow if depth given

2015-06-17 Thread Mike Edgar
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 use