Re: [RFC PATCH 2/2] upload-pack.c: allow banning certain object filter(s)
- From
Taylor Blau <me@ttaylorr.com>
- Date
- Mar 18, 2020, 21:18 UTC
- Message-ID
- <20200318211801.GC31397@syl.local>
- In-Reply-To
- <CAPig+cRgnqmwCCjFV32K_ysawHBkJN_y6=Do_oKXjjpy0BSvUQ@mail.gmail.com>
On Tue, Mar 17, 2020 at 05:11:42PM -0400, Eric Sunshine wrote:
Show 6 quoted lines
> On Tue, Mar 17, 2020 at 4:40 PM Taylor Blau <me@ttaylorr.com> wrote: > > NB: this introduces an unfortunate possibility that attempt to write the > > ERR sideband will cause a SIGPIPE. This can be prevented by some of > > SZEDZER's previous work, but it is silenced in 't' for now. > > s/SZEDZER/SZEDER/
Thank you for pointing this out, and my apologies to SZEDER.
Show 14 quoted lines
> > diff --git a/t/t5616-partial-clone.sh b/t/t5616-partial-clone.sh > > @@ -235,6 +235,29 @@ test_expect_success 'implicitly construct combine: filter with repeated flags' ' > > +test_expect_success 'upload-pack fails banned object filters' ' > > + # Ensure that configuration keys are normalized by capitalizing > > + # "blob:None" below: > > + test_config -C srv.bare uploadpack.filter.blob:None.allow false && > > I found the wording of the comment more confusing than clarifying. > Perhaps rewriting it like this could help: > > Test case-insensitivity by intentional use of "blob:None" rather than > "blob:none". > > or something.
Sure, your suggestion does clarify things. I'll apply it to my fork.
> > + test_must_fail ok=sigpipe git clone --no-checkout --filter.blob:none \ > > + "file://$(pwd)/srv.bare" pc3 > > +'
Thanks, Taylor