Re: [PATCH] t7406: submodule.<name>.update command must not be run from .gitmodules
Johannes Sixt <j6t@kdbg.org> writes:
Show 13 quoted lines
>> + test_when_finished "git -C super reset --hard HEAD^" &&
>> +
>> + write_script must_not_run.sh <<-EOF &&
>> + >$TEST_DIRECTORY/bad
>> + EOF
>
> I am pretty confident that this does not test what you intend to
> test. Notice that $TEST_DIRECTORY is expanded when the script is
> written. But that path contains a blank, and we have something like
> this in the test script:
>
> #!/bin/sh
> >/the/build/directory/t/trash directory.t7406/bad
Nicely explained. Thanks.