]> git.scripts.mit.edu Git - git.git/commit
t0018: two small fixes
authorJunio C Hamano <gitster@pobox.com>
Wed, 8 May 2024 00:40:51 +0000 (17:40 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 8 May 2024 00:50:22 +0000 (17:50 -0700)
commitcbdc83f1514963f86e8f027f9e75cde7f757c2a8
treee78bd36af22194a13c9d5e8d707cb8917cfd58ee
parentb79deeb55444f9e01a3f6335d7e0507e23e90190
t0018: two small fixes

Even though the three tests that were recently added started their
here-doc with "<<-\EOF", it did not take advantage of that and
instead wrote the here-doc payload abut to the left edge.  Use a tabs
to indent these lines.

More importantly, because these all hardcode the expected output,
which contains the current branch name, they break the CI job that
uses 'main' as the default branch name.

Use

    GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=trunk
    export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME

between the test_description line and ". ./test-lib.sh" line to
force the initial branch name to 'trunk' and expect it to show in
the output.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0018-advice.sh