Re: [PATCH 2/2] submodule::module_clone(): silence die() message from module_name()
- From
Jens Lehmann <jens.lehmann@web.de>
- Date
- Oct 11, 2011, 17:38 UTC
- Message-ID
- <4E947F01.8040600@web.de>
- In-Reply-To
- <CALUzUxo6YEEpL_MhT=O9sJSUdwcpKBpeM2O8GkbbyxvqmWCFLQ@mail.gmail.com>
Am 11.10.2011 10:44, schrieb Tay Ray Chuan:
Show 13 quoted lines
> On Tue, Oct 11, 2011 at 3:34 AM, Jens Lehmann <Jens.Lehmann@web.de> wrote: >> When cmd_foreach() passes an empty "name" variable to the >> spawned command that might still work (and even make sense), but using the >> empty name in cmd_sync() to access the config is looking like an error to >> me. It might make sense to add an "|| exit" at least to the callsite in >> cmd_sync(). Or am I missing something here? > > Cc-ed David, who authored cmd_sync(). > > David, what do you think of Jens' analysis? > > In the meantime, I'll probably reword the second paragraph to say that > future work will be needed to analyze non- || exit callsites.
Yeah, me too thinks the missing "|| exit" should be subject of another patch.