Re: [PATCH v3 13/28] fetch: support fetching from a shallow repository

2013-11-27 Thread Eric Sunshine
On Sun, Nov 24, 2013 at 10:55 PM, Nguyễn Thái Ngọc Duy pclo...@gmail.com wrote: diff --git a/t/t5536-fetch-shallow.sh b/t/t5536-fetch-shallow.sh new file mode 100755 index 000..41de74d --- /dev/null +++ b/t/t5536-fetch-shallow.sh @@ -0,0 +1,128 @@ +#!/bin/sh +

[PATCH v3 13/28] fetch: support fetching from a shallow repository

2013-11-24 Thread Nguyễn Thái Ngọc Duy
This patch just put together pieces from the previous patches: - Before getting the new pack, we need to remove all new reachable shallow roots. The remaining roots may or may not be added to .git/shallow. - After getting the pack, walk all new refs until they connect to current refs,