Stefan Beller <sbel...@google.com> writes:

>> +test_expect_success 'fetching submodule into a broken repository' '
>> +       # Prepare src and src/sub nested in it
>> +       git init src &&
>> +       (
>> +               cd src &&
>> +               git init sub &&
>> +               git -C sub commit --allow-empty -m "initial in sub" &&
>> +               git submodule add -- ./sub sub &&
>> +               git commit -m "initial in top"
>> +       ) &&
>
> This is not needed, as setup() set up some repositories for you.

I didn't want any random cruft left behind in the top-level by
previous tests, so this is very much deliberate.

Reply via email to