Re: [PATCH] merge-tree: fix segmentation fault in read-only repositories
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Sep 21, 2022, 20:13 UTC
- Message-ID
- <p25141n2-p277-21o4-r8s3-4396491s41n8@tzk.qr>
- In-Reply-To
- <xmqqedw438bq.fsf@gitster.g>
Hi Junio,
On Wed, 21 Sep 2022, Junio C Hamano wrote:
Show 13 quoted lines
> "Johannes Schindelin via GitGitGadget" <gitgitgadget@gmail.com> > writes: > > > +test_expect_success 'merge-ort fails gracefully in a read-only repository' ' > > + git init --bare read-only && > > + git push read-only side1 side2 && > > + test_when_finished "chmod -R u+w read-only" && > > + chmod -R a-w read-only && > > + test_must_fail git -C read-only merge-tree side1 side2 > > +' > > Doesn't this test need a prerequisite to guard against those whose > filesystem lacks SANITY?
Yes, of course!
Thank you for the sanity check (pun intended!), Dscho