Skip to content

Commit

Permalink
t2004: drop unnecessary write-tree/read-tree
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Sunshine authored and Junio C Hamano committed Dec 29, 2014
1 parent 9fb7b57 commit 0bbc971
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions t/t2004-checkout-cache-temp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 0bbc971

Please sign in to comment.