Re: [PATCH v2 05/16] fetch-pack: support fetching from a shallow repository

2013-07-23 Thread Duy Nguyen
On Tue, Jul 23, 2013 at 9:06 AM, Duy Nguyen wrote: > Another is reject new shallow history (i.e. > no additions to .git/shallow) unless the user explicitly asks so > either via --depth or a new option --shallow. This does not mean that > fetching from a shallow clone always fails without either of

Re: [PATCH v2 05/16] fetch-pack: support fetching from a shallow repository

2013-07-22 Thread Duy Nguyen
On Tue, Jul 23, 2013 at 2:10 AM, Philip Oakley wrote: >> And a full repository may automatically become shallow if >> you fetch from a shallow repository. > > > This "sounds" risky: Perhaps add a note about '[PATCH v2 15/16] config: add > core.noshallow to prevent turning a repo into a

Re: [PATCH v2 05/16] fetch-pack: support fetching from a shallow repository

2013-07-22 Thread Philip Oakley
From: "Nguyễn Thái Ngọc Duy" upload-pack already advertises all shallow grafts if server repository is shallow. This information can be used to add more grafts to the client if the server sends commit chains down to its graft points. If the server is shallow, before we receive the pack, we setu

[PATCH v2 05/16] fetch-pack: support fetching from a shallow repository

2013-07-20 Thread Nguyễn Thái Ngọc Duy
upload-pack already advertises all shallow grafts if server repository is shallow. This information can be used to add more grafts to the client if the server sends commit chains down to its graft points. If the server is shallow, before we receive the pack, we setup a temporary shallow file that