From: Erik Elfström Date: Sun, 30 Aug 2015 09:18:09 +0000 (+0200) Subject: t7300: fix broken && chains X-Git-Tag: v2.5.2~2^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/1733ed3d70f0a051b286eea9f7cac78977b40a0d?ds=inline;hp=--cc t7300: fix broken && chains While we are here, remove some boilerplate by using test_commit. Signed-off-by: Erik Elfström Signed-off-by: Junio C Hamano --- 1733ed3d70f0a051b286eea9f7cac78977b40a0d diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh index ccfb54de7a..954ec9c71e 100755 --- a/t/t7300-clean.sh +++ b/t/t7300-clean.sh @@ -404,9 +404,7 @@ test_expect_success 'nested git work tree' ' ( cd foo && git init && - >hello.world - git add . && - git commit -a -m nested + test_commit nested hello.world ) && ( cd bar && @@ -415,9 +413,7 @@ test_expect_success 'nested git work tree' ' ( cd baz/boo && git init && - >deeper.world - git add . && - git commit -a -m deeply.nested + test_commit deeply.nested deeper.world ) && git clean -f -d && test -f foo/.git/index && @@ -433,9 +429,7 @@ test_expect_success 'force removal of nested git work tree' ' ( cd foo && git init && - >hello.world - git add . && - git commit -a -m nested + test_commit nested hello.world ) && ( cd bar && @@ -444,9 +438,7 @@ test_expect_success 'force removal of nested git work tree' ' ( cd baz/boo && git init && - >deeper.world - git add . && - git commit -a -m deeply.nested + test_commit deeply.nested deeper.world ) && git clean -f -f -d && ! test -d foo &&