Skip to content

Commit 18fe500

Browse files
committed
Merge branch 'fc/t3200-fixes'
* fc/t3200-fixes: t: branch: fix broken && chains t: branch: fix typo t: branch: trivial style fix
2 parents f5e4b82 + d0423dd commit 18fe500

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

t/t3200-branch.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ test_expect_success 'prepare a trivial repository' '
1414
echo World >>A &&
1515
git update-index --add A &&
1616
git commit -m "Second commit." &&
17-
HEAD=$(git rev-parse --verify HEAD)'
17+
HEAD=$(git rev-parse --verify HEAD)
18+
'
1819

1920
test_expect_success 'git branch --help should not have created a bogus branch' '
2021
test_might_fail git branch --help </dev/null >/dev/null 2>/dev/null &&
@@ -350,7 +351,7 @@ test_expect_success 'test overriding tracking setup via --no-track' '
350351
test_expect_success 'no tracking without .fetch entries' '
351352
git config branch.autosetupmerge true &&
352353
git branch my6 s &&
353-
git config branch.automsetupmerge false &&
354+
git config branch.autosetupmerge false &&
354355
test -z "$(git config branch.my6.remote)" &&
355356
test -z "$(git config branch.my6.merge)"
356357
'
@@ -424,14 +425,14 @@ test_expect_success '--set-upstream-to fails on a non-ref' '
424425
test_expect_success 'use --set-upstream-to modify HEAD' '
425426
test_config branch.master.remote foo &&
426427
test_config branch.master.merge foo &&
427-
git branch my12
428+
git branch my12 &&
428429
git branch --set-upstream-to my12 &&
429430
test "$(git config branch.master.remote)" = "." &&
430431
test "$(git config branch.master.merge)" = "refs/heads/my12"
431432
'
432433

433434
test_expect_success 'use --set-upstream-to modify a particular branch' '
434-
git branch my13
435+
git branch my13 &&
435436
git branch --set-upstream-to master my13 &&
436437
test "$(git config branch.my13.remote)" = "." &&
437438
test "$(git config branch.my13.merge)" = "refs/heads/master"
@@ -442,7 +443,7 @@ test_expect_success '--unset-upstream should fail if given a non-existent branch
442443
'
443444

444445
test_expect_success 'test --unset-upstream on HEAD' '
445-
git branch my14
446+
git branch my14 &&
446447
test_config branch.master.remote foo &&
447448
test_config branch.master.merge foo &&
448449
git branch --set-upstream-to my14 &&
@@ -464,7 +465,7 @@ test_expect_success '--unset-upstream should fail on detached HEAD' '
464465
'
465466

466467
test_expect_success 'test --unset-upstream on a particular branch' '
467-
git branch my15
468+
git branch my15 &&
468469
git branch --set-upstream-to master my14 &&
469470
git branch --unset-upstream my14 &&
470471
test_must_fail git config branch.my14.remote &&

0 commit comments

Comments
 (0)