Skip to content

Commit

Permalink
t7300: fix broken && chains
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Erik Elfström authored and Junio C Hamano committed Aug 31, 2015
1 parent ae2f203 commit 1733ed3
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions t/t7300-clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand All @@ -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 &&
Expand All @@ -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 &&
Expand All @@ -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 &&
Expand Down

0 comments on commit 1733ed3

Please sign in to comment.