[PATCH v2] [submodule] Add --depth to submodule update/add

2013-06-28 Thread Fredrik Gustafsson
When a submodule is clone, clone it width the --depth flag. This is useful when the submodule(s) are huge and you're not really interested in anything but the latest commit. Tests are added and to make --depth work the path for test setup a submodule tree had to be modified. Also did some indent

Re: [PATCH v2] [submodule] Add --depth to submodule update/add

2013-06-28 Thread Junio C Hamano
Fredrik Gustafsson iv...@iveqy.com writes: diff --git a/t/t7406-submodule-update.sh b/t/t7406-submodule-update.sh index a4ffea0..b2d0f0e 100755 --- a/t/t7406-submodule-update.sh +++ b/t/t7406-submodule-update.sh @@ -31,8 +31,9 @@ test_expect_success 'setup a submodule tree' ' git

Re: [PATCH v2] [submodule] Add --depth to submodule update/add

2013-06-28 Thread Jens Lehmann
Apparently due to a newly added test at the end of t7400 this patch doesn't apply cleanly to neither pu, next nor master for me. But it addresses all issues raised in the first round. Am 28.06.2013 15:22, schrieb Fredrik Gustafsson: When a submodule is clone, clone it width the --depth flag.