From: SZEDER Gábor Date: Sat, 09 Jun 2018 09:50:14 GMT Subject: Re: [PATCH v2 2/2] fsck: avoid looking at NULL blob->object Message-ID: <20180609095014.17972-1-szeder.dev@gmail.com> In-Reply-To: <20180609093141.GB8942@sigill.intra.peff.net> > +test_expect_success 'fsck detects non-blob .gitmodules' ' > + git init non-blob && > + ( > + cd non-blob && > + > + # As above, make the funny tree directly to avoid index > + # restrictions. > + mkdir subdir && > + cp ../.gitmodules subdir/file && > + git add subdir/file && > + git commit -m ok && > + tree=$(git ls-tree HEAD | sed s/subdir/.gitmodules/ | git mktree) && And $tree won't be used here, either. > + > + test_must_fail git fsck 2>output && > + grep gitmodulesBlob output > + ) > +' > + > test_done > -- > 2.18.0.rc1.446.g4486251e51 >