t5306-pack-nobase: modernize test format

Some tests still use the old format with four spaces indentation.
Standardize the tests to the new format with tab indentation.

Signed-off-by: John Cai <johncai86@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
John Cai 2023-05-18 20:03:23 +00:00 committed by Junio C Hamano
parent aac864059f
commit a45bb750db
1 changed files with 45 additions and 49 deletions

View File

@ -12,9 +12,8 @@ TEST_PASSES_SANITIZE_LEAK=true

# Create A-B chain
#
test_expect_success \
'setup base' \
'test_write_lines a b c d e f g h i >text &&
test_expect_success 'setup base' '
test_write_lines a b c d e f g h i >text &&
echo side >side &&
git update-index --add text side &&
A=$(echo A | git commit-tree $(git write-tree)) &&
@ -31,9 +30,8 @@ test_expect_success \
# Repository is missing A (parent of B).
# Repository is missing A:side.
#
test_expect_success \
'setup patch_clone' \
'base_objects=$(pwd)/.git/objects &&
test_expect_success 'setup patch_clone' '
base_objects=$(pwd)/.git/objects &&
(mkdir patch_clone &&
cd patch_clone &&
git init &&
@ -55,9 +53,8 @@ test_expect_success \

# Clone patch_clone indirectly by cloning base and fetching.
#
test_expect_success \
'indirectly clone patch_clone' \
'(mkdir user_clone &&
test_expect_success 'indirectly clone patch_clone' '
(mkdir user_clone &&
cd user_clone &&
git init &&
git pull ../.git &&
@ -70,9 +67,8 @@ test_expect_success \

# Cloning the patch_clone directly should fail.
#
test_expect_success \
'clone of patch_clone is incomplete' \
'(mkdir user_direct &&
test_expect_success 'clone of patch_clone is incomplete' '
(mkdir user_direct &&
cd user_direct &&
git init &&
test_must_fail git fetch ../patch_clone/.git