Re: [PATCH 2/2] submodule.c: warn about missing submodule git directories
- From
Stefan Beller <sbeller@google.com>
- Date
- Sep 7, 2018, 18:49 UTC
- Message-ID
- <CAGZ79kb0VEDxe0TAMf66nWk3pYMPxrpb_zFmoU4gezzswM5XSQ@mail.gmail.com>
- In-Reply-To
- <20180905191849.GB120842@aiede.svl.corp.google.com>
On Wed, Sep 5, 2018 at 12:18 PM Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 20 quoted lines
> > Hi, > > Stefan Beller wrote: > > > This is the continuation of f2d48994dc1 (submodule.c: submodule_move_head > > works with broken submodules, 2017-04-18), which tones down the case of > > "broken submodule" in case of a missing git directory of the submodule to > > be only a warning. > > > > Signed-off-by: Stefan Beller <sbeller@google.com> > > --- > > submodule.c | 16 ++++++++++++++++ > > t/t2013-checkout-submodule.sh | 2 +- > > 2 files changed, 17 insertions(+), 1 deletion(-) > > I don't understand what workflow this is a part of. > > If the submodule is missing, shouldn't we make it non-missing instead > of producing a partial checkout that doesn't build?
No. checkout and friends do not want to touch the network (unless we are in a partial clone world; that is the user is fully aware that commands can use the network at totally unexpected times)
So for that, all we can do is better error messages.
Stefan