Re: [PATCH 2/8] builtin/multi-pack-index.c: support --stdin-packs mode
- From
Taylor Blau <me@ttaylorr.com>
- Date
- Sep 11, 2021, 16:28 UTC
- Message-ID
- <YTzZPti/asQwZC/D@nand.local>
- In-Reply-To
- <YTzYYfBGqG87O5mN@nand.local>
On Sat, Sep 11, 2021 at 12:25:05PM -0400, Taylor Blau wrote:
Show 14 quoted lines
> Good catch. It's kind of gross, but the result is:
>
> --- 8< ---
>
> diff --git a/builtin/multi-pack-index.c b/builtin/multi-pack-index.c
> index 77488b6b7b..e6cab975e3 100644
> --- a/builtin/multi-pack-index.c
> +++ b/builtin/multi-pack-index.c
> @@ -64,7 +64,7 @@ static struct option *add_common_options(struct option *prev)
>
> static void read_packs_from_stdin(struct string_list *to)
> {
> - struct strbuf buf = STRBUF_INIT;
> + struct strbuf buf = STRBUF_INIT_NODUP;Thanks, Taylor