Skip to content

Commit 1733ed3

Browse files
elfstromgitster
authored andcommitted
t7300: fix broken && chains
While we are here, remove some boilerplate by using test_commit. Signed-off-by: Erik Elfström <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ae2f203 commit 1733ed3

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

t/t7300-clean.sh

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,7 @@ test_expect_success 'nested git work tree' '
404404
(
405405
cd foo &&
406406
git init &&
407-
>hello.world
408-
git add . &&
409-
git commit -a -m nested
407+
test_commit nested hello.world
410408
) &&
411409
(
412410
cd bar &&
@@ -415,9 +413,7 @@ test_expect_success 'nested git work tree' '
415413
(
416414
cd baz/boo &&
417415
git init &&
418-
>deeper.world
419-
git add . &&
420-
git commit -a -m deeply.nested
416+
test_commit deeply.nested deeper.world
421417
) &&
422418
git clean -f -d &&
423419
test -f foo/.git/index &&
@@ -433,9 +429,7 @@ test_expect_success 'force removal of nested git work tree' '
433429
(
434430
cd foo &&
435431
git init &&
436-
>hello.world
437-
git add . &&
438-
git commit -a -m nested
432+
test_commit nested hello.world
439433
) &&
440434
(
441435
cd bar &&
@@ -444,9 +438,7 @@ test_expect_success 'force removal of nested git work tree' '
444438
(
445439
cd baz/boo &&
446440
git init &&
447-
>deeper.world
448-
git add . &&
449-
git commit -a -m deeply.nested
441+
test_commit deeply.nested deeper.world
450442
) &&
451443
git clean -f -f -d &&
452444
! test -d foo &&

0 commit comments

Comments
 (0)