Skip to content

Commit 51b8547

Browse files
sunshinecogitster
authored andcommitted
t5000-t5999: fix broken &&-chains
Signed-off-by: Eric Sunshine <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f957f03 commit 51b8547

14 files changed

+24
-24
lines changed

t/t5300-pack-object.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ test_expect_success 'survive missing objects/pack directory' '
191191
mkdir missing-pack &&
192192
cd missing-pack &&
193193
git init &&
194-
GOP=.git/objects/pack
194+
GOP=.git/objects/pack &&
195195
rm -fr $GOP &&
196196
git index-pack --stdin --keep=test <../test-3-${packname_3}.pack &&
197197
test -f $GOP/pack-${packname_3}.pack &&

t/t5302-pack-index.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ test_expect_success 'running index-pack in the object store' '
237237
rm -f .git/objects/pack/* &&
238238
cp test-1-${pack1}.pack .git/objects/pack/pack-${pack1}.pack &&
239239
(
240-
cd .git/objects/pack
240+
cd .git/objects/pack &&
241241
git index-pack pack-${pack1}.pack
242242
) &&
243243
test -f .git/objects/pack/pack-${pack1}.idx

t/t5401-update-hooks.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ test_expect_success 'hooks ran' '
8282
'
8383

8484
test_expect_success 'pre-receive hook input' '
85-
(echo $commit0 $commit1 refs/heads/master;
85+
(echo $commit0 $commit1 refs/heads/master &&
8686
echo $commit1 $commit0 refs/heads/tofail
8787
) | test_cmp - victim.git/pre-receive.stdin
8888
'
8989

9090
test_expect_success 'update hook arguments' '
91-
(echo refs/heads/master $commit0 $commit1;
91+
(echo refs/heads/master $commit0 $commit1 &&
9292
echo refs/heads/tofail $commit1 $commit0
9393
) | test_cmp - victim.git/update.args
9494
'

t/t5500-fetch-pack.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ test_expect_success 'clone shallow object count' '
259259
test_expect_success 'pull in shallow repo with missing merge base' '
260260
(
261261
cd shallow &&
262-
git fetch --depth 4 .. A
262+
git fetch --depth 4 .. A &&
263263
test_must_fail git merge --allow-unrelated-histories FETCH_HEAD
264264
)
265265
'

t/t5505-remote.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ test_expect_success 'migrate a remote from named file in $GIT_DIR/branches (2)'
844844
git remote rename origin origin &&
845845
test_path_is_missing .git/branches/origin &&
846846
test "$(git config remote.origin.url)" = "quux" &&
847-
test "$(git config remote.origin.fetch)" = "refs/heads/foom:refs/heads/origin"
847+
test "$(git config remote.origin.fetch)" = "refs/heads/foom:refs/heads/origin" &&
848848
test "$(git config remote.origin.push)" = "HEAD:refs/heads/foom"
849849
)
850850
'

t/t5512-ls-remote.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test_expect_success setup '
1515
git tag mark1.10 &&
1616
git show-ref --tags -d | sed -e "s/ / /" >expected.tag &&
1717
(
18-
echo "$(git rev-parse HEAD) HEAD"
18+
echo "$(git rev-parse HEAD) HEAD" &&
1919
git show-ref -d | sed -e "s/ / /"
2020
) >expected.all &&
2121
@@ -105,7 +105,7 @@ test_expect_success 'use branch.<name>.remote if possible' '
105105
git clone . other.git &&
106106
(
107107
cd other.git &&
108-
echo "$(git rev-parse HEAD) HEAD"
108+
echo "$(git rev-parse HEAD) HEAD" &&
109109
git show-ref | sed -e "s/ / /"
110110
) >exp &&
111111

t/t5516-fetch-push.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ test_expect_success 'push into aliased refs (consistent)' '
923923
(
924924
cd child1 &&
925925
git branch foo &&
926-
git symbolic-ref refs/heads/bar refs/heads/foo
926+
git symbolic-ref refs/heads/bar refs/heads/foo &&
927927
git config receive.denyCurrentBranch false
928928
) &&
929929
(
@@ -945,7 +945,7 @@ test_expect_success 'push into aliased refs (inconsistent)' '
945945
(
946946
cd child1 &&
947947
git branch foo &&
948-
git symbolic-ref refs/heads/bar refs/heads/foo
948+
git symbolic-ref refs/heads/bar refs/heads/foo &&
949949
git config receive.denyCurrentBranch false
950950
) &&
951951
(
@@ -1011,7 +1011,7 @@ test_expect_success 'push --porcelain rejected' '
10111011
mk_empty testrepo &&
10121012
git push testrepo refs/heads/master:refs/remotes/origin/master &&
10131013
(cd testrepo &&
1014-
git reset --hard origin/master^
1014+
git reset --hard origin/master^ &&
10151015
git config receive.denyCurrentBranch true) &&
10161016
10171017
echo >.git/foo "To testrepo" &&
@@ -1025,7 +1025,7 @@ test_expect_success 'push --porcelain --dry-run rejected' '
10251025
mk_empty testrepo &&
10261026
git push testrepo refs/heads/master:refs/remotes/origin/master &&
10271027
(cd testrepo &&
1028-
git reset --hard origin/master
1028+
git reset --hard origin/master &&
10291029
git config receive.denyCurrentBranch true) &&
10301030
10311031
echo >.git/foo "To testrepo" &&
@@ -1333,7 +1333,7 @@ test_expect_success 'push --follow-tag only pushes relevant tags' '
13331333
git commit --allow-empty -m "future commit" &&
13341334
git tag -m "future" future &&
13351335
git checkout master &&
1336-
git for-each-ref refs/heads/master refs/tags/tag >../expect
1336+
git for-each-ref refs/heads/master refs/tags/tag >../expect &&
13371337
git push --follow-tag ../dst master
13381338
) &&
13391339
(

t/t5517-push-mirror.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ test_expect_success 'push mirror force updates existing branches' '
7171
git push --mirror up &&
7272
echo two >foo && git add foo && git commit -m two &&
7373
git push --mirror up &&
74-
git reset --hard HEAD^
74+
git reset --hard HEAD^ &&
7575
git push --mirror up
7676
) &&
7777
master_master=$(cd master && git show-ref -s --verify refs/heads/master) &&
@@ -88,7 +88,7 @@ test_expect_success 'push mirror removes branches' '
8888
echo one >foo && git add foo && git commit -m one &&
8989
git branch remove master &&
9090
git push --mirror up &&
91-
git branch -D remove
91+
git branch -D remove &&
9292
git push --mirror up
9393
) &&
9494
(
@@ -170,7 +170,7 @@ test_expect_success 'push mirror force updates existing tags' '
170170
echo two >foo && git add foo && git commit -m two &&
171171
git tag -f tmaster master &&
172172
git push --mirror up &&
173-
git reset --hard HEAD^
173+
git reset --hard HEAD^ &&
174174
git tag -f tmaster master &&
175175
git push --mirror up
176176
) &&
@@ -188,7 +188,7 @@ test_expect_success 'push mirror removes tags' '
188188
echo one >foo && git add foo && git commit -m one &&
189189
git tag -f tremove master &&
190190
git push --mirror up &&
191-
git tag -d tremove
191+
git tag -d tremove &&
192192
git push --mirror up
193193
) &&
194194
(
@@ -235,7 +235,7 @@ test_expect_success 'remote.foo.mirror adds and removes branches' '
235235
git branch keep master &&
236236
git branch remove master &&
237237
git push up &&
238-
git branch -D remove
238+
git branch -D remove &&
239239
git push up
240240
) &&
241241
(

t/t5526-fetch-submodules.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ test_expect_success "'--recurse-submodules=on-demand' recurses as deep as necess
379379
git config -f .gitmodules submodule.subdir/deepsubmodule.fetchRecursive false
380380
) &&
381381
git fetch --recurse-submodules=on-demand >../actual.out 2>../actual.err &&
382-
git config --unset fetch.recurseSubmodules
382+
git config --unset fetch.recurseSubmodules &&
383383
(
384384
cd submodule &&
385385
git config --unset -f .gitmodules submodule.subdir/deepsubmodule.fetchRecursive

t/t5531-deep-submodule-push.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ test_expect_success 'push succeeds if submodule has no remote and is on the firs
354354
git clone a a1 &&
355355
(
356356
cd a1 &&
357-
git init b
357+
git init b &&
358358
(
359359
cd b &&
360360
>junk &&

0 commit comments

Comments
 (0)