diff options
| author | Junio C Hamano <gitster@pobox.com> | 2026-02-03 13:26:00 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-02-03 13:27:35 -0800 |
| commit | 0728012c537de800bb6cf2b6faac3f4d746a058e (patch) | |
| tree | fe1ff06c26268f033de8223761dffc01ccba9a57 /contrib | |
| parent | f368df439b31b422169975cc3c95f7db6a46eada (diff) | |
| download | git-0728012c537de800bb6cf2b6faac3f4d746a058e.tar.xz | |
diff-highlight: allow testing with Git 3.0 breaking changes
The diff-highlight (in contrib/) comes with its own test script,
which relies on the initial branch name being 'master'. This is not
just encoded in the test logic, but in the illustration in the file
that shows the topology of the history.
Force the initial branch name to 'master' to allow it pass.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
| -rwxr-xr-x | contrib/diff-highlight/t/t9400-diff-highlight.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/diff-highlight/t/t9400-diff-highlight.sh b/contrib/diff-highlight/t/t9400-diff-highlight.sh index f6f5195d00..dee296739c 100755 --- a/contrib/diff-highlight/t/t9400-diff-highlight.sh +++ b/contrib/diff-highlight/t/t9400-diff-highlight.sh @@ -10,6 +10,8 @@ DIFF_HIGHLIGHT="$CURR_DIR"/../diff-highlight CW="$(printf "\033[7m")" # white CR="$(printf "\033[27m")" # reset +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME . "$TEST_DIRECTORY"/test-lib.sh if ! test_have_prereq PERL |
