summaryrefslogtreecommitdiff
path: root/t/t7300-clean.sh
diff options
context:
space:
mode:
authorErik Elfström <erik.elfstrom@gmail.com>2015-08-30 09:18:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-08-31 16:46:36 (GMT)
commit1733ed3d70f0a051b286eea9f7cac78977b40a0d (patch)
tree93d8703984cccd8b07e132c630f6ae2a728d97a0 /t/t7300-clean.sh
parentae2f203ef7be7b33ff5ec61646c8662363eccd62 (diff)
downloadgit-1733ed3d70f0a051b286eea9f7cac78977b40a0d.zip
git-1733ed3d70f0a051b286eea9f7cac78977b40a0d.tar.gz
git-1733ed3d70f0a051b286eea9f7cac78977b40a0d.tar.bz2
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>
Diffstat (limited to 't/t7300-clean.sh')
-rwxr-xr-xt/t7300-clean.sh16
1 files changed, 4 insertions, 12 deletions
diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh
index ccfb54d..954ec9c 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 &&