Re: [PATCH] submodule: check for NULL return of get_submodule_ref_store()
- From
Stefan Beller <sbeller@google.com>
- Date
- Mar 28, 2018, 21:37 UTC
- Message-ID
- <CAGZ79kYL55+=9UbW7H-c7OUg6CHbnzdkxs0ZMsFnEAaoVXRwLw@mail.gmail.com>
- In-Reply-To
- <38570708-e166-0004-878a-2d8442c12b65@web.de>
> This looks nicer here in the script, but doesn't test exactly what users > type most of the time, I suppose. > > So how about this?
Looks good to me, though I had a nagging feeling at first that the regex could be made more concise. Why do we need the optional "[^ ]" inside \1 ?
> + sed -e "s/^ \([^ ]* repo\) .*/-\1/" <actual >expect &&