From: Junio C Hamano Date: Tue, 27 Sep 2016 05:35:41 GMT Subject: Re: [PATCH 1/2] tree-walk: be more specific about corrupt tree errors Message-ID: In-Reply-To: <20160927051453.yuvrnao5ldjpzhcj@sigill.intra.peff.net> Jeff King writes: >> +test_expect_success 'malformed mode in tree' ' >> + test_must_fail git hash-object -t tree ../t1007/tree-with-malformed-mode 2>err && >> + grep "malformed mode in tree entry for tree" err >> +' > > This ".." will break when the test is run with "--root". You should use > > "$TEST_DIRECTORY"/t1007/... > > instead. And ditto in the second test, of course. Ahh, that explains the breakage I saw. Thanks.