File tree Expand file tree Collapse file tree 6 files changed +17
-17
lines changed Expand file tree Collapse file tree 6 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ test_expect_success 'setup for many rename source candidates' '
180
180
git add "path??" &&
181
181
test_tick &&
182
182
git commit -m "hundred" &&
183
- (cat path1; echo new) >new-path &&
183
+ (cat path1 && echo new) >new-path &&
184
184
echo old >>path1 &&
185
185
git add new-path path1 &&
186
186
git diff -l 4 -C -C --cached --name-status >actual 2>actual.err &&
Original file line number Diff line number Diff line change @@ -127,17 +127,17 @@ test_expect_success setup '
127
127
128
128
for n in $sample
129
129
do
130
- ( zs $n ; echo a ) >file-a$n &&
131
- ( echo b; zs $n; echo ) >file-b$n &&
132
- ( printf c; zs $n ) >file-c$n &&
133
- ( echo d; zs $n ) >file-d$n &&
130
+ ( zs $n && echo a ) >file-a$n &&
131
+ ( echo b && zs $n && echo ) >file-b$n &&
132
+ ( printf c && zs $n ) >file-c$n &&
133
+ ( echo d && zs $n ) >file-d$n &&
134
134
135
135
git add file-a$n file-b$n file-c$n file-d$n &&
136
136
137
- ( zs $n ; echo A ) >file-a$n &&
138
- ( echo B; zs $n; echo ) >file-b$n &&
139
- ( printf C; zs $n ) >file-c$n &&
140
- ( echo D; zs $n ) >file-d$n &&
137
+ ( zs $n && echo A ) >file-a$n &&
138
+ ( echo B && zs $n && echo ) >file-b$n &&
139
+ ( printf C && zs $n ) >file-c$n &&
140
+ ( echo D && zs $n ) >file-d$n &&
141
141
142
142
expect_pattern $n || return 1
143
143
Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ NS="$N$N$N$N$N$N$N$N$N$N$N$N$N"
12
12
test_expect_success setup '
13
13
14
14
(
15
- echo "A $NS"
15
+ echo "A $NS" &&
16
16
for c in B C D E F G H I J K
17
17
do
18
18
echo " $c"
19
- done
20
- echo "L $NS"
19
+ done &&
20
+ echo "L $NS" &&
21
21
for c in M N O P Q R S T U V
22
22
do
23
23
echo " $c"
@@ -34,7 +34,7 @@ test_expect_success 'hunk header truncation with an overly long line' '
34
34
35
35
git diff | sed -n -e "s/^.*@@//p" >actual &&
36
36
(
37
- echo " A $N$N$N$N$N$N$N$N$N2"
37
+ echo " A $N$N$N$N$N$N$N$N$N2" &&
38
38
echo " L $N$N$N$N$N$N$N$N$N1"
39
39
) >expected &&
40
40
test_cmp actual expected
Original file line number Diff line number Diff line change @@ -498,7 +498,7 @@ test_expect_success 'given commit --submodule=short' '
498
498
test_expect_success ' setup .git file for sm2' '
499
499
(cd sm2 &&
500
500
REAL="$(pwd)/../.real" &&
501
- mv .git "$REAL"
501
+ mv .git "$REAL" &&
502
502
echo "gitdir: $REAL" >.git)
503
503
'
504
504
@@ -527,7 +527,7 @@ test_expect_success 'diff --submodule with objects referenced by alternates' '
527
527
git commit -m "sub a"
528
528
) &&
529
529
(cd sub_alt &&
530
- sha1_before=$(git rev-parse --short HEAD)
530
+ sha1_before=$(git rev-parse --short HEAD) &&
531
531
echo b >b &&
532
532
git add b &&
533
533
git commit -m b &&
Original file line number Diff line number Diff line change @@ -721,7 +721,7 @@ test_expect_success 'given commit' '
721
721
test_expect_success ' setup .git file for sm2' '
722
722
(cd sm2 &&
723
723
REAL="$(pwd)/../.real" &&
724
- mv .git "$REAL"
724
+ mv .git "$REAL" &&
725
725
echo "gitdir: $REAL" >.git)
726
726
'
727
727
Original file line number Diff line number Diff line change @@ -27,6 +27,6 @@ test_expect_success 'setup' \
27
27
28
28
test_expect_success \
29
29
' check if contextually independent diffs for the same file apply' \
30
- ' ( git diff test~2 test~1; git diff test~1 test~0 )| git apply'
30
+ ' ( git diff test~2 test~1 && git diff test~1 test~0 )| git apply'
31
31
32
32
test_done
You can’t perform that action at this time.
0 commit comments