t7300: fix broken && chains

While we are here, remove some boilerplate by using test_commit. Signed-off-by: Erik Elfström <erik.elfstrom@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Erik Elfström committed Aug 30, 2015 at 11:18 UTC 1733ed3d70f0a051b286eea9f7cac78977b40a0d
1 file changed +4 -12
t/t7300-clean.sh
+4 -12
@@ -404,9 +404,7 @@ test_expect_success 'nested git work tree' '
404 (
405 cd foo &&
406 git init &&
407 - >hello.world
408 - git add . &&
409 - git commit -a -m nested
407 + test_commit nested hello.world
408 ) &&
409 (
410 cd bar &&
@@ -415,9 +413,7 @@ test_expect_success 'nested git work tree' '
413 (
414 cd baz/boo &&
415 git init &&
418 - >deeper.world
419 - git add . &&
420 - git commit -a -m deeply.nested
416 + test_commit deeply.nested deeper.world
417 ) &&
418 git clean -f -d &&
419 test -f foo/.git/index &&
@@ -433,9 +429,7 @@ test_expect_success 'force removal of nested git work tree' '
429 (
430 cd foo &&
431 git init &&
436 - >hello.world
437 - git add . &&
438 - git commit -a -m nested
432 + test_commit nested hello.world
433 ) &&
434 (
435 cd bar &&
@@ -444,9 +438,7 @@ test_expect_success 'force removal of nested git work tree' '
438 (
439 cd baz/boo &&
440 git init &&
447 - >deeper.world
448 - git add . &&
449 - git commit -a -m deeply.nested
441 + test_commit deeply.nested deeper.world
442 ) &&
443 git clean -f -f -d &&
444 ! test -d foo &&