Jeff King <p...@peff.net> 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.