Re: [PATCH v3 3/3] submodule: extend die message on failed checkout with depth argument
On Sun, Dec 20, 2015 at 3:19 PM, <larsxschneider@gmail.com> wrote:
Show 7 quoted lines
> +test_expect_success 'submodule update clone shallow submodule on non-default branch' '
> + git clone cloned super4 &&
> + pwd=$(pwd) &&
> + (cd super4 &&
> + sed -e "s#url = ../#url = file://$pwd/#" <.gitmodules >.gitmodules.tmp &&
> + mv -f .gitmodules.tmp .gitmodules &&
> + test_must_fail git submodule update --init --depth=3 2>submodule.out &&
Why do we choose a depth of 3 here?
Show 8 quoted lines
> + test_i18ngrep --count "Commit is probably not on the default branch." submodule.out
> + )
> '
>
> test_expect_success 'submodule update --recursive drops module name before recursing' '
> --
> 2.5.1
>