Re: [PATCH 5/7] fetch-pack: support fetching from a shallow repository

2013-07-19 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy pclo...@gmail.com writes: Only server graft points that do not have corresponding SHA-1s in local repo are added to the temp shallow file because we don't want to accidentally cut the client history because the server's is shorter. The client cutting can only happen when

[PATCH 5/7] fetch-pack: support fetching from a shallow repository

2013-07-17 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