Skip to content

Commit a900999

Browse files
dschogitster
authored andcommitted
t2106: adjust style to the current conventions
We settled on the style where the test cases' code starts by the opening single quote being on the `test_expect_*` line, and the closing quote being in its own line after the code. Signed-off-by: Johannes Schindelin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 898f807 commit a900999

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

t/t2106-update-index-assume-unchanged.sh

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,22 @@ test_description='git update-index --assume-unchanged test.
55

66
. ./test-lib.sh
77

8-
test_expect_success 'setup' \
9-
': >file &&
10-
git add file &&
11-
git commit -m initial &&
12-
git branch other &&
13-
echo upstream >file &&
14-
git add file &&
15-
git commit -m upstream'
8+
test_expect_success 'setup' '
9+
: >file &&
10+
git add file &&
11+
git commit -m initial &&
12+
git branch other &&
13+
echo upstream >file &&
14+
git add file &&
15+
git commit -m upstream
16+
'
1617

17-
test_expect_success 'do not switch branches with dirty file' \
18-
'git reset --hard &&
19-
git checkout other &&
20-
echo dirt >file &&
21-
git update-index --assume-unchanged file &&
22-
test_must_fail git checkout master'
18+
test_expect_success 'do not switch branches with dirty file' '
19+
git reset --hard &&
20+
git checkout other &&
21+
echo dirt >file &&
22+
git update-index --assume-unchanged file &&
23+
test_must_fail git checkout master
24+
'
2325

2426
test_done

0 commit comments

Comments
 (0)