mirror of
https://github.com/git/git
synced 2024-11-05 18:59:29 +00:00
1550bb6ed0
Carefully excluding t6300, which sees independent development elsewhere at the time of writing, we use `main` as the default branch name in t6[0-3]*. This trick was performed via $ (cd t && sed -i -e 's/master/main/g' -e 's/MASTER/MAIN/g' \ -e 's/Master/Main/g' -- t6[0-3]*.sh && git checkout HEAD -- t6300\*) This allows us to define `GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main` for those tests. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
23 lines
469 B
Bash
Executable file
23 lines
469 B
Bash
Executable file
#!/bin/sh
|
|
|
|
test_description='operations that cull histories in unusual ways'
|
|
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
|
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
|
|
|
. ./test-lib.sh
|
|
|
|
test_expect_success setup '
|
|
test_commit A &&
|
|
test_commit B &&
|
|
test_commit C &&
|
|
git checkout -b side HEAD^ &&
|
|
test_commit D &&
|
|
test_commit E &&
|
|
git merge main
|
|
'
|
|
|
|
test_expect_success 'rev-list --first-parent --boundary' '
|
|
git rev-list --first-parent --boundary HEAD^..
|
|
'
|
|
|
|
test_done
|