t2004: drop unnecessary write-tree/read-tree
authorEric Sunshine <sunshine@sunshineco.com>
Wed, 24 Dec 2014 09:43:13 +0000 (04:43 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 29 Dec 2014 18:54:20 +0000 (10:54 -0800)
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>
t/t2004-checkout-cache-temp.sh
index 28e50d69d5f86845e85cdf54233e088900e4bdd0..22d1a248b65ad7ce4d1a2d51e4b88169d533d98b 100755 (executable)
@@ -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 &&