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 <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Schindelin committed
Nov 18, 2020 at 14:49 UTC
a900999d7cd74f878686933a6341e3852726165d
1 file changed
+16
-14
t/t2106-update-index-assume-unchanged.sh
+16
-14
@@ -5,20 +5,22 @@ test_description='git update-index --assume-unchanged test.
5
6
. ./test-lib.sh
7
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
+'
17
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
+'
25
26
test_done