@@ -1097,7 +1097,7 @@ hash1=$(git rev-parse HEAD)
10971097test_expect_success ' creating second commit and tag' '
10981098 echo foo-2.0 > foo &&
10991099 git add foo &&
1100- git commit -m second
1100+ git commit -m second &&
11011101 git tag v2.0
11021102'
11031103
@@ -1122,18 +1122,18 @@ v2.0
11221122EOF
11231123
11241124test_expect_success ' checking that first commit is in all tags (hash)' "
1125- git tag -l --contains $hash1 v* >actual
1125+ git tag -l --contains $hash1 v* >actual &&
11261126 test_cmp expected actual
11271127"
11281128
11291129# other ways of specifying the commit
11301130test_expect_success ' checking that first commit is in all tags (tag)' "
1131- git tag -l --contains v1.0 v* >actual
1131+ git tag -l --contains v1.0 v* >actual &&
11321132 test_cmp expected actual
11331133"
11341134
11351135test_expect_success ' checking that first commit is in all tags (relative)' "
1136- git tag -l --contains HEAD~2 v* >actual
1136+ git tag -l --contains HEAD~2 v* >actual &&
11371137 test_cmp expected actual
11381138"
11391139
@@ -1142,7 +1142,7 @@ v2.0
11421142EOF
11431143
11441144test_expect_success ' checking that second commit only has one tag' "
1145- git tag -l --contains $hash2 v* >actual
1145+ git tag -l --contains $hash2 v* >actual &&
11461146 test_cmp expected actual
11471147"
11481148
@@ -1151,7 +1151,7 @@ cat > expected <<EOF
11511151EOF
11521152
11531153test_expect_success ' checking that third commit has no tags' "
1154- git tag -l --contains $hash3 v* >actual
1154+ git tag -l --contains $hash3 v* >actual &&
11551155 test_cmp expected actual
11561156"
11571157
@@ -1161,7 +1161,7 @@ test_expect_success 'creating simple branch' '
11611161 git branch stable v2.0 &&
11621162 git checkout stable &&
11631163 echo foo-3.0 > foo &&
1164- git commit foo -m fourth
1164+ git commit foo -m fourth &&
11651165 git tag v3.0
11661166'
11671167
@@ -1172,7 +1172,7 @@ v3.0
11721172EOF
11731173
11741174test_expect_success ' checking that branch head only has one tag' "
1175- git tag -l --contains $hash4 v* >actual
1175+ git tag -l --contains $hash4 v* >actual &&
11761176 test_cmp expected actual
11771177"
11781178
@@ -1186,7 +1186,7 @@ v4.0
11861186EOF
11871187
11881188test_expect_success ' checking that original branch head has one tag now' "
1189- git tag -l --contains $hash3 v* >actual
1189+ git tag -l --contains $hash3 v* >actual &&
11901190 test_cmp expected actual
11911191"
11921192
@@ -1201,18 +1201,18 @@ v4.0
12011201EOF
12021202
12031203test_expect_success ' checking that initial commit is in all tags' "
1204- git tag -l --contains $hash1 v* >actual
1204+ git tag -l --contains $hash1 v* >actual &&
12051205 test_cmp expected actual
12061206"
12071207
12081208# mixing modes and options:
12091209
12101210test_expect_success ' mixing incompatibles modes and options is forbidden' '
1211- test_must_fail git tag -a
1212- test_must_fail git tag -l -v
1213- test_must_fail git tag -n 100
1214- test_must_fail git tag -l -m msg
1215- test_must_fail git tag -l -F some file
1211+ test_must_fail git tag -a &&
1212+ test_must_fail git tag -l -v &&
1213+ test_must_fail git tag -n 100 &&
1214+ test_must_fail git tag -l -m msg &&
1215+ test_must_fail git tag -l -F some file &&
12161216 test_must_fail git tag -v -s
12171217'
12181218
0 commit comments