From: Nguyễn Thái Ngọc Duy Date: Sun, 26 May 2013 01:16:15 +0000 (+0700) Subject: fetch-pack: prepare updated shallow file before fetching the pack X-Git-Tag: v1.8.3.2~2^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/6035d6aad8ca11954c0d7821f6f3e7c047039c8f?hp=6035d6aad8ca11954c0d7821f6f3e7c047039c8f fetch-pack: prepare updated shallow file before fetching the pack index-pack --strict looks up and follows parent commits. If shallow information is not ready by the time index-pack is run, index-pack may be led to non-existent objects. Make fetch-pack save shallow file to disk before invoking index-pack. git learns new global option --shallow-file to pass on the alternate shallow file path. Undocumented (and not even support --shallow-file= syntax) because it's unlikely to be used again elsewhere. Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano ---