From: Stefan Beller Date: Mon, 11 Jan 2016 16:26:18 GMT Subject: Re: [PATCH v3 3/3] submodule: extend die message on failed checkout with depth argument Message-ID: In-Reply-To: <1450653595-22676-4-git-send-email-larsxschneider@gmail.com> On Sun, Dec 20, 2015 at 3:19 PM, wrote: > +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? > + 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 >