Skip to content

Commit 8d320ce

Browse files
committed
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 <[email protected]>
1 parent 3c2a3fd commit 8d320ce

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

t/t2104-update-index-skip-worktree.sh

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,27 @@ TEST_PASSES_SANITIZE_LEAK=true
1111
sane_unset GIT_TEST_SPLIT_INDEX
1212

1313
test_set_index_version () {
14-
GIT_INDEX_VERSION="$1"
15-
export GIT_INDEX_VERSION
14+
GIT_INDEX_VERSION="$1"
15+
export GIT_INDEX_VERSION
1616
}
1717

1818
test_set_index_version 3
1919

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
2627
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
3334
34-
test_expect_success 'setup' '
3535
mkdir sub &&
3636
touch ./1 ./2 sub/1 sub/2 &&
3737
git add 1 2 sub/1 sub/2 &&

0 commit comments

Comments
 (0)