Re: git submodules implementation question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Stefan Beller <sbeller@xxxxxxxxxx> 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.



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]