Skip to content

Commit 368c43d

Browse files
dschoGit for Windows Build Agent
authored and
Git for Windows Build Agent
committed
fixup??? pack-objects (mingw): demonstrate a segmentation fault with large deltas
This makes the test resilient to changes in the default branch name. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent ad61690 commit 368c43d

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

t/t7422-submodule-long-path.sh

+9-5
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ pwdlen=$(echo "$pwd" | wc -c)
2525
longpath=$(echo $longpath180 | cut -c 1-$((170-$pwdlen)))
2626

2727
test_expect_success 'submodule with a long path' '
28-
git init --bare remote &&
28+
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME= \
29+
git -c init.defaultBranch=long init --bare remote &&
2930
test_create_repo bundle1 &&
3031
(
3132
cd bundle1 &&
@@ -37,21 +38,22 @@ test_expect_success 'submodule with a long path' '
3738
cd home &&
3839
git clone ../remote test &&
3940
cd test &&
41+
git checkout -B long &&
4042
git submodule add ../bundle1 $longpath &&
4143
test_commit "sogood" &&
4244
(
4345
cd $longpath &&
4446
git rev-parse --verify HEAD >actual &&
4547
test_cmp ../../../expect actual
4648
) &&
47-
git push origin master
49+
git push origin long
4850
) &&
4951
mkdir home2 &&
5052
(
5153
cd home2 &&
5254
git clone ../remote test &&
5355
cd test &&
54-
git checkout master &&
56+
git checkout long &&
5557
git submodule update --init &&
5658
(
5759
cd $longpath &&
@@ -62,7 +64,8 @@ test_expect_success 'submodule with a long path' '
6264
'
6365

6466
test_expect_success 'recursive submodule with a long path' '
65-
git init --bare super &&
67+
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME= \
68+
git -c init.defaultBranch=long init --bare super &&
6669
test_create_repo child &&
6770
(
6871
cd child &&
@@ -80,6 +83,7 @@ test_expect_success 'recursive submodule with a long path' '
8083
cd home3 &&
8184
git clone ../super test &&
8285
cd test &&
86+
git checkout -B long &&
8387
git submodule add ../parent foo &&
8488
git submodule update --init --recursive &&
8589
test_commit "sogood" &&
@@ -88,7 +92,7 @@ test_expect_success 'recursive submodule with a long path' '
8892
git rev-parse --verify HEAD >actual &&
8993
test_cmp ../../../../expect actual
9094
) &&
91-
git push origin master
95+
git push origin long
9296
) &&
9397
mkdir home4 &&
9498
(

0 commit comments

Comments
 (0)