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>
Junio C Hamano committed
Feb 3, 2026 at 13:26 UTC
0728012c537de800bb6cf2b6faac3f4d746a058e
1 file changed
+2
contrib/diff-highlight/t/t9400-diff-highlight.sh
+2
@@ -10,6 +10,8 @@ DIFF_HIGHLIGHT="$CURR_DIR"/../diff-highlight
10
CW="$(printf "\033[7m")" # white
11
CR="$(printf "\033[27m")" # reset
12
13
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
14
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
15
. "$TEST_DIRECTORY"/test-lib.sh
16
17
if ! test_have_prereq PERL