summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2014-12-24 04:43:13 -0500
committerJunio C Hamano <gitster@pobox.com>2014-12-29 10:54:20 -0800
commit0bbc971ab59d5630f974e12cee7aef6189e23c45 (patch)
tree02175edbf5ee36a3b97c3b91e5f99f758bfcdbb5 /t
parent9fb7b57f8272a38747d49fe8ecee2e20bb887570 (diff)
downloadgit-0bbc971ab59d5630f974e12cee7aef6189e23c45.tar.gz
t2004: drop unnecessary write-tree/read-tree
Unlike earlier tests which reference several trees prepared by "setup", no other tests utilize the tree from the "symlink" test, so there is no need to write it (or read it back immediately). Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t2004-checkout-cache-temp.sh3
1 files changed, 0 insertions, 3 deletions
diff --git a/t/t2004-checkout-cache-temp.sh b/t/t2004-checkout-cache-temp.sh
index 28e50d69d5..22d1a248b6 100755
--- a/t/t2004-checkout-cache-temp.sh
+++ b/t/t2004-checkout-cache-temp.sh
@@ -198,9 +198,6 @@ test_expect_success 'checkout --temp within subdir' '
test_expect_success 'checkout --temp symlink' '
rm -f path* .merge_* actual .git/index &&
test_ln_s_add b a &&
- t4=$(git write-tree) &&
- rm -f .git/index &&
- git read-tree $t4 &&
git checkout-index --temp -a >actual &&
test_line_count = 1 actual &&
test $(cut "-d " -f2 actual) = a &&