]> git.99rst.org Git - git.git/commit
t1100: move creation of expected output into setup test
authorShlok Kulshreshtha <redacted>
Tue, 14 Jul 2026 12:20:33 +0000 (17:50 +0530)
committerJunio C Hamano <redacted>
Tue, 14 Jul 2026 14:18:42 +0000 (07:18 -0700)
commit9719c290ee5926487caacc1ff059c043323ed183
tree74533b338b567d09a988b1394783bbc3b1763360
parent678f3bb60dabece745b95f3a268813a7b17d6955
t1100: move creation of expected output into setup test

The "expected" file is created at the top-level of the script, outside
of any test. Code that runs outside of a test is not protected by the
test harness: a failure there is not reported as a test failure and is
easy to miss.

Move the here-doc that creates "expected" into the existing setup test
("test preparation: write empty tree"), using a "<<-" here-doc so its
body can be indented along with the rest of the test.

Signed-off-by: Shlok Kulshreshtha <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/t1100-commit-tree-options.sh
git clone https://git.99rst.org/PROJECT