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>
This commit is contained in:
Erik Elfström 2015-08-30 11:18:09 +02:00 committed by Junio C Hamano
parent ae2f203ef7
commit 1733ed3d70

View File

@ -404,9 +404,7 @@ test_expect_success 'nested git work tree' '
( (
cd foo && cd foo &&
git init && git init &&
>hello.world test_commit nested hello.world
git add . &&
git commit -a -m nested
) && ) &&
( (
cd bar && cd bar &&
@ -415,9 +413,7 @@ test_expect_success 'nested git work tree' '
( (
cd baz/boo && cd baz/boo &&
git init && git init &&
>deeper.world test_commit deeply.nested deeper.world
git add . &&
git commit -a -m deeply.nested
) && ) &&
git clean -f -d && git clean -f -d &&
test -f foo/.git/index && test -f foo/.git/index &&
@ -433,9 +429,7 @@ test_expect_success 'force removal of nested git work tree' '
( (
cd foo && cd foo &&
git init && git init &&
>hello.world test_commit nested hello.world
git add . &&
git commit -a -m nested
) && ) &&
( (
cd bar && cd bar &&
@ -444,9 +438,7 @@ test_expect_success 'force removal of nested git work tree' '
( (
cd baz/boo && cd baz/boo &&
git init && git init &&
>deeper.world test_commit deeply.nested deeper.world
git add . &&
git commit -a -m deeply.nested
) && ) &&
git clean -f -f -d && git clean -f -f -d &&
! test -d foo && ! test -d foo &&