t2104: style fixes

We use tabs to indent, not two or four spaces. These days, even the test fixture preparation should be done inside test_expect_success block. Address these two style violations in this test. Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Apr 2, 2024 at 11:41 UTC 40c45f809f84f5305ddb2e3b7a7f782e04166b15
1 file changed +15 -15
t/t2104-update-index-skip-worktree.sh
+15 -15
@@ -11,27 +11,27 @@ TEST_PASSES_SANITIZE_LEAK=true
11 sane_unset GIT_TEST_SPLIT_INDEX
12
13 test_set_index_version () {
14 - GIT_INDEX_VERSION="$1"
15 - export GIT_INDEX_VERSION
14 + GIT_INDEX_VERSION="$1"
15 + export GIT_INDEX_VERSION
16 }
17
18 test_set_index_version 3
19
20 -cat >expect.full <<EOF
21 -H 1
22 -H 2
23 -H sub/1
24 -H sub/2
25 -EOF
20 +test_expect_success 'setup' '
21 + cat >expect.full <<-\EOF &&
22 + H 1
23 + H 2
24 + H sub/1
25 + H sub/2
26 + EOF
27
27 -cat >expect.skip <<EOF
28 -S 1
29 -H 2
30 -S sub/1
31 -H sub/2
32 -EOF
28 + cat >expect.skip <<-\EOF &&
29 + S 1
30 + H 2
31 + S sub/1
32 + H sub/2
33 + EOF
34
34 -test_expect_success 'setup' '
35 mkdir sub &&
36 touch ./1 ./2 sub/1 sub/2 &&
37 git add 1 2 sub/1 sub/2 &&