Re: [PATCH 1/2] tree-walk: be more specific about corrupt tree errors
Jeff King <peff@peff.net> writes:
Show 10 quoted lines
>> +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.